summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-01 08:27:26 (GMT)
committerGitHub <noreply@github.com>2024-08-01 08:27:26 (GMT)
commita9d56e38a08ec198a2289d8fff65444b39dd4a32 (patch)
tree86f180623f37e739812215964826fd48c7de873b /Include
parent46f5a4f9e1781ad8d60eb53bbaf6cd8534a286cd (diff)
downloadcpython-a9d56e38a08ec198a2289d8fff65444b39dd4a32.zip
cpython-a9d56e38a08ec198a2289d8fff65444b39dd4a32.tar.gz
cpython-a9d56e38a08ec198a2289d8fff65444b39dd4a32.tar.bz2
GH-122155: Track local variables between pops and pushes in cases generator (GH-122286)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_opcode_metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_opcode_metadata.h b/Include/internal/pycore_opcode_metadata.h
index eaba280..464d350 100644
--- a/Include/internal/pycore_opcode_metadata.h
+++ b/Include/internal/pycore_opcode_metadata.h
@@ -903,7 +903,7 @@ int _PyOpcode_num_pushed(int opcode, int oparg) {
case UNARY_NOT:
return 1;
case UNPACK_EX:
- return 1 + (oparg >> 8) + (oparg & 0xFF);
+ return 1 + (oparg & 0xFF) + (oparg >> 8);
case UNPACK_SEQUENCE:
return oparg;
case UNPACK_SEQUENCE_LIST: