From 9e88b572fb904b172f9e344069fb7118f1cee517 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 5 Apr 2022 19:18:02 +0300 Subject: [PATCH] bpo-47009: Fix assert on big endian (GH-32332) --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 9b7c42cbe4b..487e09bc664 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;