Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9482b2

Browse files
committed
bpo-47009: Fix assert on big endian
1 parent 0aa8d5c commit f9482b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5032,7 +5032,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
50325032
STAT_INC(PRECALL, hit);
50335033
// PRECALL + CALL + POP_TOP
50345034
JUMPBY(INLINE_CACHE_ENTRIES_PRECALL + 1 + INLINE_CACHE_ENTRIES_CALL + 1);
5035-
assert(next_instr[-1] == POP_TOP);
5035+
assert(_Py_OPCODE(next_instr[-1]) == POP_TOP);
50365036
PyObject *arg = POP();
50375037
if (_PyList_AppendTakeRef((PyListObject *)list, arg) < 0) {
50385038
goto error;

0 commit comments

Comments
 (0)