diff options
author | Christian Heimes <christian@python.org> | 2022-04-05 16:18:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 16:18:02 (GMT) |
commit | 9e88b572fb904b172f9e344069fb7118f1cee517 (patch) | |
tree | b402c883dc293188d5bb85e75060c06ec26b47f6 /Python | |
parent | 75280944e5ca957eec7f814b9d0608fc84fc5811 (diff) | |
download | cpython-9e88b572fb904b172f9e344069fb7118f1cee517.zip cpython-9e88b572fb904b172f9e344069fb7118f1cee517.tar.gz cpython-9e88b572fb904b172f9e344069fb7118f1cee517.tar.bz2 |
bpo-47009: Fix assert on big endian (GH-32332)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 9b7c42c..487e09b 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; |