bpo-47009: Fix assert on big endian (GH-32332)

This commit is contained in:
Christian Heimes 2022-04-05 19:18:02 +03:00 committed by GitHub
parent 75280944e5
commit 9e88b572fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;