summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-04-25 08:15:59 +0200
committerStefan Behnel <stefan_ml@behnel.de>2023-04-25 08:15:59 +0200
commitc73d2d0c2f4596e6e27dd72a692cfcd59569082a (patch)
tree0e592336144274cef36f7255163252891a51ceb2
parent1aef71764cd50e4cd2f638eac8e69fff3ced2224 (diff)
downloadcython-c73d2d0c2f4596e6e27dd72a692cfcd59569082a.tar.gz
Use the generally available Py_ssize_t instead of the less widespread ssize_t.
See https://github.com/cython/cython/pull/5394#issuecomment-1521199083
-rw-r--r--Cython/Utility/TypeConversion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c
index 9447c71f6..2ca03e05b 100644
--- a/Cython/Utility/TypeConversion.c
+++ b/Cython/Utility/TypeConversion.c
@@ -144,7 +144,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
((1 - (Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag & 3)) * (Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> 3)) // (>> NON_SIZE_BITS)
// CPython 3.12 requires C99
- typedef ssize_t __Pyx_compact_pylong;
+ typedef Py_ssize_t __Pyx_compact_pylong;
typedef size_t __Pyx_compact_upylong;
#else // Py < 3.12