]> granicus.if.org Git - python/commitdiff
Fixed refactoring bug in dd046963bd42 (issue27129).
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Sep 2016 12:19:12 +0000 (15:19 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Sep 2016 12:19:12 +0000 (15:19 +0300)
Python/peephole.c

index 68e36f73318df372301636228fafe333440939b7..84eb2dbefdfb9ada3bd6736be0ab8a2dc889e519 100644 (file)
@@ -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--;