From a0e849ed91fbd19e96f1eb7f69d5d89a565e5d79 Mon Sep 17 00:00:00 2001 From: Jim Bosch Date: Sun, 18 Jan 2015 10:00:42 -0500 Subject: [PATCH] Switch from int to Py_intptr_t for shape/stride returns. --- boost/numpy/ndarray.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boost/numpy/ndarray.hpp b/boost/numpy/ndarray.hpp index ee5800c0..8c2a2627 100644 --- a/boost/numpy/ndarray.hpp +++ b/boost/numpy/ndarray.hpp @@ -87,10 +87,10 @@ public: ndarray copy() const; /// @brief Return the size of the nth dimension. - int const shape(int n) const { return get_shape()[n]; } + Py_intptr_t const shape(int n) const { return get_shape()[n]; } /// @brief Return the stride of the nth dimension. - int const strides(int n) const { return get_strides()[n]; } + Py_intptr_t const strides(int n) const { return get_strides()[n]; } /** * @brief Return the array's raw data pointer.