Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b46418

Browse filesBrowse files
committed
Fix compiler warning
1 parent eb6f8c4 commit 5b46418
Copy full SHA for 5b46418

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎Python/ceval.c

Copy file name to clipboardExpand all lines: Python/ceval.c
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.