Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
early return if calculation fails
Co-authored-by: Mark Shannon <mark@hotpy.org>
  • Loading branch information
gaogaotiantian and markshannon authored Apr 26, 2024
commit 4fecbd46fff8cddfcec7672b7b703e957813f1cd
1 change: 1 addition & 0 deletions Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ PyFrame_GetLineNumber(PyFrameObject *f)
f->f_lineno = PyUnstable_InterpreterFrame_GetLine(f->f_frame);
if (f->f_lineno < 0) {
f->f_lineno = 0;
Comment thread
gaogaotiantian marked this conversation as resolved.
return -1;
}
}

Expand Down