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 17:25:19 +0200 |
commit | 326a00e193b7bffe395e14a5b1eaabd3d5137879 (patch) | |
tree | e3d4f3101e5e1d4cfe96fc8240eb161ff1d3ab62 | |
parent | 92a2da00a769a267139325dfe058d8b37b0929dc (diff) | |
download | cython-326a00e193b7bffe395e14a5b1eaabd3d5137879.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 5bdb90e87..005aa4ff8 100644 --- a/Cython/Utility/CythonFunction.c +++ b/Cython/Utility/CythonFunction.c @@ -1189,7 +1189,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) |