Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1e9ab3

Browse files
Fixed refactoring bug in dd046963bd42 (issue27129).
1 parent 2a9f5ed commit a1e9ab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/peephole.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
475475
CONST_STACK_CREATE();
476476

477477
for (i=find_op(codestr, 0) ; i<codelen ; i=nexti) {
478-
opcode = codestr[i];
478+
opcode = _Py_OPCODE(codestr[i]);
479479
op_start = i;
480480
while (op_start >= 1 && _Py_OPCODE(codestr[op_start-1]) == EXTENDED_ARG) {
481481
op_start--;

0 commit comments

Comments
 (0)