bpo-47009: Fix assert on big endian (GH-32332) · python/cpython@9e88b57 (original) (raw)

Original file line number Diff line number Diff line change
@@ -5032,7 +5032,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
5032 5032 STAT_INC(PRECALL, hit);
5033 5033 // PRECALL + CALL + POP_TOP
5034 5034 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);
5036 5036 PyObject *arg = POP();
5037 5037 if (_PyList_AppendTakeRef((PyListObject *)list, arg) < 0) {
5038 5038 goto error;