From a3906778eb86bc1885bffd86ef61838770a2624b Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sat, 27 Aug 2016 13:09:02 +0200 Subject: [PATCH] minor: renamed argument in array constructor --- include/pybind11/numpy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)