Skip to content

Commit 3d9c294

Browse files
committed
Fix assignment
1 parent 29a04b7 commit 3d9c294

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/ceval.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,9 @@ PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
30643064
{
30653065
PyThreadState *tstate = _PyThreadState_GET();
30663066
_PyInterpreterFrame *current_frame = tstate->current_frame;
3067+
if (current_frame == tstate->base_frame) {
3068+
current_frame = NULL;
3069+
}
30673070
int result = cf->cf_flags != 0;
30683071

30693072
if (current_frame != NULL) {

0 commit comments

Comments
 (0)