diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2023-05-16 08:39:06 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2023-05-16 08:40:24 +0200 |
commit | 8af954f812f78d5258cb8440b13cc6944eccf940 (patch) | |
tree | 5939f0b46e1be025a0da75f78027eb5260c2dfb1 | |
parent | 38f6a5670c7004172502fee41d990519e2163666 (diff) | |
download | cython-8af954f812f78d5258cb8440b13cc6944eccf940.tar.gz |
Disable fast Py_SIZE(PyLong) check in Py3.12a7+ since it's no longer valid there.0.29.x
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | Cython/Utility/TypeConversion.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index a8746d0ac..f85b9dabd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,7 +8,7 @@ Cython Changelog Bugs fixed ---------- -* Some C compile failures in CPython 3.12 were resolved. +* Some C compile failures and crashes in CPython 3.12 were resolved. * A C compile failure in PyPy 3.10 was resolved. Patch by Matti Picus. (Github issue :issue:`5408`) diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c index 7a7bf0f79..404814907 100644 --- a/Cython/Utility/TypeConversion.c +++ b/Cython/Utility/TypeConversion.c @@ -917,7 +917,7 @@ static CYTHON_INLINE {{TYPE}} {{FROM_PY_FUNCTION}}(PyObject *x) { {{endfor}} } #endif -#if CYTHON_COMPILING_IN_CPYTHON +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7 if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } |