Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a06b75

Browse files
committed
replace assignment by assertion in _Py_call_instrumentation_line
1 parent 909de93 commit 0a06b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/instrumentation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ _Py_Instrumentation_GetLine(PyCodeObject *code, int index)
11221122
int
11231123
_Py_call_instrumentation_line(PyThreadState *tstate, _PyInterpreterFrame* frame, _Py_CODEUNIT *instr, _Py_CODEUNIT *prev)
11241124
{
1125-
frame->prev_instr = instr;
1125+
assert(frame->prev_instr == instr);
11261126
PyCodeObject *code = _PyFrame_GetCode(frame);
11271127
assert(is_version_up_to_date(code, tstate->interp));
11281128
assert(instrumentation_cross_checks(tstate->interp, code));

0 commit comments

Comments
 (0)