Skip to content

Commit a79c92e

Browse files
committed
Silence clang warnings about unreachable code.
Closes cython#6873
1 parent bfe52ee commit a79c92e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cython/Utility/Coroutine.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,8 +2124,8 @@ static void __Pyx__ReturnWithStopIteration(PyObject* value, int async) {
21242124
PyObject *exc;
21252125
PyObject *exc_type = async ? PyExc_StopAsyncIteration : PyExc_StopIteration;
21262126
#if CYTHON_COMPILING_IN_CPYTHON
2127-
if ((PY_VERSION_HEX >= 0x030C00A6) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
2128-
if ((PY_VERSION_HEX >= 0x030e00A1)) {
2127+
if ((PY_VERSION_HEX >= (0x030C00A6)) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
2128+
if (PY_VERSION_HEX >= (0x030e00A1)) {
21292129
exc = __Pyx_PyObject_CallOneArg(exc_type, value);
21302130
} else {
21312131
// Before Py3.14a1, CPython doesn't implement vectorcall for exceptions.

0 commit comments

Comments
 (0)