Skip to content

Commit 82953f8

Browse files
numpy: Quell C++17 warnings about subobject braces
1 parent d2349ea commit 82953f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/pybind11/numpy.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ struct npy_api {
145145
NPY_UINT8_ = NPY_UBYTE_,
146146
NPY_INT16_ = NPY_SHORT_,
147147
NPY_UINT16_ = NPY_USHORT_,
148-
NPY_INT32_ = platform_lookup<std::int32_t, short, int, long>({
149-
NPY_SHORT_, NPY_INT_, NPY_LONG_}),
150-
NPY_UINT32_ = platform_lookup<std::uint32_t, unsigned short, unsigned int, unsigned long>({
151-
NPY_USHORT_, NPY_UINT_, NPY_ULONG_}),
152-
NPY_INT64_ = platform_lookup<std::int64_t, int, long, long long>({
153-
NPY_INT_, NPY_LONG_, NPY_LONGLONG_}),
154-
NPY_UINT64_ = platform_lookup<std::uint64_t, unsigned int, unsigned long, unsigned long long>({
155-
NPY_UINT_, NPY_ULONG_, NPY_ULONGLONG_}),
148+
NPY_INT32_ = platform_lookup<std::int32_t, short, int, long>({{
149+
NPY_SHORT_, NPY_INT_, NPY_LONG_}}),
150+
NPY_UINT32_ = platform_lookup<std::uint32_t, unsigned short, unsigned int, unsigned long>({{
151+
NPY_USHORT_, NPY_UINT_, NPY_ULONG_}}),
152+
NPY_INT64_ = platform_lookup<std::int64_t, int, long, long long>({{
153+
NPY_INT_, NPY_LONG_, NPY_LONGLONG_}}),
154+
NPY_UINT64_ = platform_lookup<std::uint64_t, unsigned int, unsigned long, unsigned long long>({{
155+
NPY_UINT_, NPY_ULONG_, NPY_ULONGLONG_}}),
156156
};
157157

158158
typedef struct {

0 commit comments

Comments
 (0)