summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-08-01 12:28:03 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-08-01 12:28:03 +0200
commitc3318bea868ff8ae3df5f19cc46d3f4b78cda77d (patch)
tree2f3b50d4799e033b0366bde2ac22993d30c31cec
parent05a5de6c800c58111260a70e0dd12c4b05963d73 (diff)
downloadcython-c3318bea868ff8ae3df5f19cc46d3f4b78cda77d.tar.gz
Change "Py_intptr_t" declaration in numpy.pxd to what CPython uses as fallback. "int" seems overly lazy if it tends to be larger on many systems.
-rw-r--r--Cython/Includes/numpy/__init__.pxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Includes/numpy/__init__.pxd b/Cython/Includes/numpy/__init__.pxd
index ff31b91e2..77dfbcdc5 100644
--- a/Cython/Includes/numpy/__init__.pxd
+++ b/Cython/Includes/numpy/__init__.pxd
@@ -21,7 +21,7 @@ cdef extern from *:
cdef extern from "Python.h":
- ctypedef int Py_intptr_t
+ ctypedef Py_ssize_t Py_intptr_t
cdef extern from "numpy/arrayobject.h":
ctypedef Py_intptr_t npy_intp