Skip to content

Commit

Permalink
use instr_ptr in _PyFrame_IsIncomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 8, 2023
1 parent b6a8b0c commit 1ceeba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ _PyFrame_IsIncomplete(_PyInterpreterFrame *frame)
return true;
}
return frame->owner != FRAME_OWNED_BY_GENERATOR &&
frame->prev_instr < _PyCode_CODE(_PyFrame_GetCode(frame)) + _PyFrame_GetCode(frame)->_co_firsttraceable;
frame->instr_ptr < _PyCode_CODE(_PyFrame_GetCode(frame)) + _PyFrame_GetCode(frame)->_co_firsttraceable;
}

static inline _PyInterpreterFrame *
Expand Down

0 comments on commit 1ceeba1

Please sign in to comment.