mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)
(cherry picked from commit b013804134
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
376d53771d
commit
e798f698e5
3 changed files with 25 additions and 1 deletions
|
@ -592,7 +592,7 @@ def _unpack_opargs(code):
|
|||
caches = _inline_cache_entries[deop]
|
||||
if deop >= HAVE_ARGUMENT:
|
||||
arg = code[i+1] | extended_arg
|
||||
extended_arg = (arg << 8) if op == EXTENDED_ARG else 0
|
||||
extended_arg = (arg << 8) if deop == EXTENDED_ARG else 0
|
||||
# The oparg is stored as a signed integer
|
||||
# If the value exceeds its upper limit, it will overflow and wrap
|
||||
# to a negative integer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue