Skip to content

Commit 759bd6b

Browse files
committed
dis._unpack_opargs should handle EXTENDED_ARG_QUICK
1 parent 941d705 commit 759bd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/dis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def _unpack_opargs(code):
592592
caches = _inline_cache_entries[deop]
593593
if deop >= HAVE_ARGUMENT:
594594
arg = code[i+1] | extended_arg
595-
extended_arg = (arg << 8) if op == EXTENDED_ARG else 0
595+
extended_arg = (arg << 8) if EXTENDED_ARG in (op, deop) else 0
596596
# The oparg is stored as a signed integer
597597
# If the value exceeds its upper limit, it will overflow and wrap
598598
# to a negative integer

0 commit comments

Comments
 (0)