From: Christian Heimes Date: Tue, 5 Apr 2022 16:18:02 +0000 (+0300) Subject: bpo-47009: Fix assert on big endian (GH-32332) X-Git-Tag: v3.11.0a7~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e88b572fb904b172f9e344069fb7118f1cee517;p=thirdparty%2FPython%2Fcpython.git bpo-47009: Fix assert on big endian (GH-32332) --- diff --git a/Python/ceval.c b/Python/ceval.c index 9b7c42cbe4b1..487e09bc6641 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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;