]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-47009: Fix assert on big endian (GH-32332)
authorChristian Heimes <christian@python.org>
Tue, 5 Apr 2022 16:18:02 +0000 (19:18 +0300)
committerGitHub <noreply@github.com>
Tue, 5 Apr 2022 16:18:02 +0000 (18:18 +0200)
Python/ceval.c

index 9b7c42cbe4b114811b2cad9976ee6c1eca8f3df5..487e09bc66417344fac50b116e03abbe48a3243d 100644 (file)
@@ -5032,7 +5032,7 @@ handle_eval_breaker:
             STAT_INC(PRECALL, hit);
             // PRECALL + CALL + POP_TOP
             JUMPBY(INLINE_CACHE_ENTRIES_PRECALL + 1 + INLINE_CACHE_ENTRIES_CALL + 1);
-            assert(next_instr[-1] == POP_TOP);
+            assert(_Py_OPCODE(next_instr[-1]) == POP_TOP);
             PyObject *arg = POP();
             if (_PyList_AppendTakeRef((PyListObject *)list, arg) < 0) {
                 goto error;