diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 8c390c531..5b6cea2b4 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -550,7 +550,7 @@ public: forcecast = detail::npy_api::NPY_ARRAY_FORCECAST_ }; - array() : array({{0}}, static_cast(nullptr)) {} + array() : array(0, static_cast(nullptr)) {} using ShapeContainer = detail::any_container; using StridesContainer = detail::any_container;