summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-03 03:02:55 (GMT)
committerGitHub <noreply@github.com>2022-06-03 03:02:55 (GMT)
commite798f698e51727d1e6596b4780e876e2b5db7528 (patch)
treee1582da95bf2f805a4f6bd013b8c888f70247405 /Lib/dis.py
parent376d53771d4c109876fd3d002fb8aa5e2c8dec89 (diff)
downloadcpython-e798f698e51727d1e6596b4780e876e2b5db7528.zip
cpython-e798f698e51727d1e6596b4780e876e2b5db7528.tar.gz
cpython-e798f698e51727d1e6596b4780e876e2b5db7528.tar.bz2
gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)
(cherry picked from commit b013804134b07894205b06744628f6b25b879d85) Co-authored-by: Dong-hee Na <donghee.na@python.org>
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 0460131..5a5ee8d 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -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