Skip to content

Commit 2123dac

Browse files
Eclips4mpage
andauthored
Update Python/bytecodes.c
Co-authored-by: mpage <[email protected]>
1 parent 3a73f90 commit 2123dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ dummy_func(
197197
_Py_CODEUNIT *bytecode =
198198
_PyEval_GetExecutableCode(tstate, _PyFrame_GetCode(frame));
199199
ERROR_IF(bytecode == NULL, error);
200-
int off = (int)(this_instr - _PyFrame_GetBytecode(frame));
200+
ptrdiff_t off = this_instr - _PyFrame_GetBytecode(frame);
201201
frame->tlbc_index = ((_PyThreadStateImpl *)tstate)->tlbc_index;
202202
frame->instr_ptr = bytecode + off;
203203
// Make sure this_instr gets reset correctley for any uops that

0 commit comments

Comments
 (0)