8000 gh-126415: Fix conversion warning in `Python/bytecodes.c` (#126416) · python/cpython@7801581 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7801581

Browse files
Eclips4mpage
andauthored
gh-126415: Fix conversion warning in Python/bytecodes.c (#126416)
Fix conversion warning in bytecodes Co-authored-by: mpage <mpage@cs.stanford.edu>
1 parent 532fc08 commit 7801581

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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 = 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

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0