mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
BUGFIX! Instructions are unsigned bytes.
This commit is contained in:
parent
569fce7901
commit
0a697f686f
1 changed files with 4 additions and 4 deletions
|
@ -1803,7 +1803,7 @@ static void
|
|||
optimizer(co)
|
||||
codeobject *co;
|
||||
{
|
||||
char *next_instr, *cur_instr;
|
||||
unsigned char *next_instr, *cur_instr;
|
||||
object *locals;
|
||||
int opcode;
|
||||
int oparg;
|
||||
|
@ -1821,7 +1821,7 @@ optimizer(co)
|
|||
return; /* For now, this is OK */
|
||||
}
|
||||
|
||||
next_instr = GETSTRINGVALUE(co->co_code);
|
||||
next_instr = (unsigned char *) GETSTRINGVALUE(co->co_code);
|
||||
for (;;) {
|
||||
opcode = NEXTOP();
|
||||
if (opcode == STOP_CODE)
|
||||
|
@ -1838,7 +1838,7 @@ optimizer(co)
|
|||
}
|
||||
|
||||
star_used = (dictlookup(locals, "*") != NULL);
|
||||
next_instr = GETSTRINGVALUE(co->co_code);
|
||||
next_instr = (unsigned char *) GETSTRINGVALUE(co->co_code);
|
||||
for (;;) {
|
||||
cur_instr = next_instr;
|
||||
opcode = NEXTOP();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue