2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

Switch from int to Py_intptr_t for shape/stride returns.

This commit is contained in:
Jim Bosch
2015-01-18 10:00:42 -05:00
parent 4dbb2784ee
commit a0e849ed91

View File

@@ -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.