From a580ed8c47d238d7481a8cea79f8d598818e3609 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Wed, 11 May 2016 14:45:01 +0200 Subject: [PATCH] Compilation issue fixed --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index b35790bf1..eb4ee606e 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -147,7 +147,7 @@ NAMESPACE_BEGIN(detail) template struct npy_format_descriptor::value>::type> { private: - constexpr static const int values[] = { + constexpr static const int values[8] = { array::API::NPY_BYTE_, array::API::NPY_UBYTE_, array::API::NPY_SHORT_, array::API::NPY_USHORT_, array::API::NPY_INT_, array::API::NPY_UINT_, array::API::NPY_LONGLONG_, array::API::NPY_ULONGLONG_ }; public: