Skip to content

Commit fbcafa6

Browse files
authored
gh-98789: Fix FOR_ITER assert on big-endian (GH-98792)
Fix FOR_ITER assertion syntax
1 parent 3e07f82 commit fbcafa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3852,7 +3852,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
38523852
_PyErr_Clear(tstate);
38533853
}
38543854
/* iterator ended normally */
3855-
assert(_Py_OPCODE(next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg] == END_FOR));
3855+
assert(_Py_OPCODE(next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg]) == END_FOR);
38563856
STACK_SHRINK(1);
38573857
Py_DECREF(iter);
38583858
/* Skip END_FOR */

0 commit comments

Comments
 (0)