]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98789: Fix FOR_ITER assert on big-endian (GH-98792)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Fri, 28 Oct 2022 06:42:39 +0000 (02:42 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 06:42:39 +0000 (14:42 +0800)
Fix FOR_ITER assertion syntax

Python/ceval.c

index ac995d7c178dfe7c5214db8287b9409156999fc2..24af419d29c50a800ec94953d9976e73e75a051a 100644 (file)
@@ -3852,7 +3852,7 @@ handle_eval_breaker:
                 _PyErr_Clear(tstate);
             }
             /* iterator ended normally */
-            assert(_Py_OPCODE(next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg] == END_FOR));
+            assert(_Py_OPCODE(next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg]) == END_FOR);
             STACK_SHRINK(1);
             Py_DECREF(iter);
             /* Skip END_FOR */