diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-12 17:25:19 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-12 19:03:23 +0200 |
commit | af3f8d4871c9493fc432bbfb2e02c34c26686903 (patch) | |
tree | ccf334825da188b801f996f8a3d170d20a99ffc4 | |
parent | 30b6573ab5ea528099eb7d389f0f9da775c51c50 (diff) | |
download | cython-af3f8d4871c9493fc432bbfb2e02c34c26686903.tar.gz |
Fix missing error handling in non-CPython code.
-rw-r--r-- | Cython/Utility/CythonFunction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/CythonFunction.c b/Cython/Utility/CythonFunction.c index 9e9da163d..19713a2f8 100644 --- a/Cython/Utility/CythonFunction.c +++ b/Cython/Utility/CythonFunction.c @@ -983,7 +983,7 @@ __pyx_FusedFunction_getitem(__pyx_FusedFunctionObject *self, PyObject *idx) #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS PyObject *item = PyTuple_GET_ITEM(idx, i); #else - PyObject *item = PySequence_ITEM(idx, i); + PyObject *item = PySequence_ITEM(idx, i); if (unlikely(!item)) goto __pyx_error; #endif string = _obj_to_str(item); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) |