Skip to content

Commit 5b46418

Browse files
committed
Fix compiler warning
1 parent eb6f8c4 commit 5b46418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ceval.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6432,10 +6432,10 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
64326432
static void
64336433
_PyEvalFrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame * frame)
64346434
{
6435-
PyObject **base = (PyObject **)frame;
64366435
// Make sure that this is, indeed, the top frame. We can't check this in
64376436
// _PyThreadState_PopFrame, since f_code is already cleared at that point:
6438-
assert(base + frame->f_code->co_framesize == tstate->datastack_top);
6437+
assert((PyObject **)frame + frame->f_code->co_framesize ==
6438+
tstate->datastack_top);
64396439
tstate->recursion_remaining--;
64406440
assert(frame->frame_obj == NULL || frame->frame_obj->f_frame == frame);
64416441
assert(frame->owner == FRAME_OWNED_BY_THREAD);

0 commit comments

Comments
 (0)