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

Skip to content

Commit b882495

Browse files
committed
Define and use GETNAMEV macro.
1 parent b6a6bdc commit b882495

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Python/ceval.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ eval_code(co, globals, locals, arg)
647647

648648
#define GETCONST(i) Getconst(f, i)
649649
#define GETNAME(i) Getname(f, i)
650+
#define GETNAMEV(i) Getnamev(f, i)
650651
#define FIRST_INSTR() (GETUSTRINGVALUE(f->f_code->co_code))
651652
#define INSTR_OFFSET() (next_instr - FIRST_INSTR())
652653
#define NEXTOP() (*next_instr++)
@@ -1090,9 +1091,9 @@ eval_code(co, globals, locals, arg)
10901091
break;
10911092

10921093
case STORE_NAME:
1093-
name = GETNAME(oparg);
1094+
w = GETNAMEV(oparg);
10941095
v = POP();
1095-
err = dictinsert(f->f_locals, name, v);
1096+
err = dict2insert(f->f_locals, w, v);
10961097
DECREF(v);
10971098
break;
10981099

0 commit comments

Comments
 (0)