diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-11-05 02:12:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 02:12:31 (GMT) |
commit | 78015818c2601db842d101cad6ce2319c921935f (patch) | |
tree | 8d31c11812d3f629bf83cc0fdf30b20524bb47b0 /Python/bytecodes.c | |
parent | 532fc08102d62c04d55f5b8aac00bd9e7e12ff4b (diff) | |
download | cpython-78015818c2601db842d101cad6ce2319c921935f.zip cpython-78015818c2601db842d101cad6ce2319c921935f.tar.gz cpython-78015818c2601db842d101cad6ce2319c921935f.tar.bz2 |
gh-126415: Fix conversion warning in `Python/bytecodes.c` (#126416)
Fix conversion warning in bytecodes
Co-authored-by: mpage <mpage@cs.stanford.edu>
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 2c78cb9..81b527e 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -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 |