summaryrefslogtreecommitdiffstats
path: root/Python/opcode_metadata.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/opcode_metadata.h')
-rw-r--r--Python/opcode_metadata.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/opcode_metadata.h b/Python/opcode_metadata.h
index 857526c..948d175 100644
--- a/Python/opcode_metadata.h
+++ b/Python/opcode_metadata.h
@@ -333,11 +333,11 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) {
case FORMAT_VALUE:
return -1;
case COPY:
- return -1;
+ return (oparg-1) + 1;
case BINARY_OP:
return 2;
case SWAP:
- return -1;
+ return (oparg-2) + 2;
case EXTENDED_ARG:
return 0;
case CACHE:
@@ -679,11 +679,11 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) {
case FORMAT_VALUE:
return -1;
case COPY:
- return -1;
+ return (oparg-1) + 2;
case BINARY_OP:
return 1;
case SWAP:
- return -1;
+ return (oparg-2) + 2;
case EXTENDED_ARG:
return 0;
case CACHE: