summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-07-18 01:30:41 (GMT)
committerGitHub <noreply@github.com>2023-07-18 01:30:41 (GMT)
commit1e36ca63f9f5e0399efe13a80499cef290314c2a (patch)
tree4e5ddbcd299a65c5f8eb90cd70ff26b62c4b63a4 /Python
parent00e52acebd2beb2663202bfc4be0ce79ba77361e (diff)
downloadcpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.zip
cpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.tar.gz
cpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.tar.bz2
Small fixes to code generator (#106845)
These repair nits I found in PR gh-106798 (issue gh-106797) and in PR gh-106716 (issue gh-106706).
Diffstat (limited to 'Python')
-rw-r--r--Python/generated_cases.c.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 0148078..0a8e4da 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -3356,7 +3356,7 @@
res = self;
STACK_GROW(1);
stack_pointer[-1] = res;
- stack_pointer[-(1 + 1)] = res2;
+ stack_pointer[-2] = res2;
next_instr += 9;
DISPATCH();
}
@@ -3378,7 +3378,7 @@
res = self;
STACK_GROW(1);
stack_pointer[-1] = res;
- stack_pointer[-(1 + 1)] = res2;
+ stack_pointer[-2] = res2;
next_instr += 9;
DISPATCH();
}
@@ -3403,7 +3403,6 @@
assert(descr != NULL);
Py_DECREF(self);
res = Py_NewRef(descr);
- STACK_GROW(0);
stack_pointer[-1] = res;
next_instr += 9;
DISPATCH();
@@ -3423,7 +3422,6 @@
assert(descr != NULL);
Py_DECREF(self);
res = Py_NewRef(descr);
- STACK_GROW(0);
stack_pointer[-1] = res;
next_instr += 9;
DISPATCH();
@@ -3450,7 +3448,7 @@
res = self;
STACK_GROW(1);
stack_pointer[-1] = res;
- stack_pointer[-(1 + 1)] = res2;
+ stack_pointer[-2] = res2;
next_instr += 9;
DISPATCH();
}