summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-11 12:19:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-11 12:19:12 (GMT)
commita1e9ab34a9cfe335af1b34287cdda6743c53487d (patch)
tree57cd4d4b29ab3db36d5cd1cf8df5e474973f7164 /Python
parent2a9f5edeebed148e0ff6a2524f5b0b177f0d41b9 (diff)
downloadcpython-a1e9ab34a9cfe335af1b34287cdda6743c53487d.zip
cpython-a1e9ab34a9cfe335af1b34287cdda6743c53487d.tar.gz
cpython-a1e9ab34a9cfe335af1b34287cdda6743c53487d.tar.bz2
Fixed refactoring bug in dd046963bd42 (issue27129).
Diffstat (limited to 'Python')
-rw-r--r--Python/peephole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/peephole.c b/Python/peephole.c
index 68e36f7..84eb2db 100644
--- a/Python/peephole.c
+++ b/Python/peephole.c
@@ -475,7 +475,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
CONST_STACK_CREATE();
for (i=find_op(codestr, 0) ; i<codelen ; i=nexti) {
- opcode = codestr[i];
+ opcode = _Py_OPCODE(codestr[i]);
op_start = i;
while (op_start >= 1 && _Py_OPCODE(codestr[op_start-1]) == EXTENDED_ARG) {
op_start--;