summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 527bc36..8bc9db6 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -551,7 +551,7 @@ _PyST_GetScope(PySTEntryObject *ste, PyObject *name)
if (symbol < 0) {
return -1;
}
- return (symbol >> SCOPE_OFFSET) & SCOPE_MASK;
+ return SYMBOL_TO_SCOPE(symbol);
}
int
@@ -809,7 +809,7 @@ inline_comprehension(PySTEntryObject *ste, PySTEntryObject *comp,
assert(_PyUnicode_EqualToASCIIString(k, ".0"));
continue;
}
- int scope = (comp_flags >> SCOPE_OFFSET) & SCOPE_MASK;
+ int scope = SYMBOL_TO_SCOPE(comp_flags);
int only_flags = comp_flags & ((1 << SCOPE_OFFSET) - 1);
if (scope == CELL || only_flags & DEF_COMP_CELL) {
if (PySet_Add(inlined_cells, k) < 0) {