Skip to content

Commit

Permalink
gh-126415: Fix conversion warning in Python/bytecodes.c (#126416)
Browse files Browse the repository at this point in the history
Fix conversion warning in bytecodes

Co-authored-by: mpage <[email protected]>
  • Loading branch information
Eclips4 and mpage authored Nov 5, 2024
1 parent 532fc08 commit 7801581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ dummy_func(
_Py_CODEUNIT *bytecode =
_PyEval_GetExecutableCode(tstate, _PyFrame_GetCode(frame));
ERROR_IF(bytecode == NULL, error);
int off = this_instr - _PyFrame_GetBytecode(frame);
ptrdiff_t off = this_instr - _PyFrame_GetBytecode(frame);
frame->tlbc_index = ((_PyThreadStateImpl *)tstate)->tlbc_index;
frame->instr_ptr = bytecode + off;
// Make sure this_instr gets reset correctley for any uops that
Expand Down
4 changes: 2 additions & 2 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7801581

Please sign in to comment.