diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index c06fb266..51c68ad9 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -234,8 +234,8 @@ public: array(const pybind11::dtype& dt, const std::vector& shape, void *ptr = nullptr) : array(dt, shape, default_strides(shape, dt.itemsize()), ptr) { } - array(const pybind11::dtype& dt, size_t size, void *ptr = nullptr) - : array(dt, std::vector { size }, ptr) { } + array(const pybind11::dtype& dt, size_t count, void *ptr = nullptr) + : array(dt, std::vector { count }, ptr) { } template array(const std::vector& shape, const std::vector& strides, T* ptr)