summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/symtable.h2
-rw-r--r--Python/symtable.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index 025e07b..02cffb9 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -32,7 +32,7 @@ typedef struct _symtable_entry {
PyObject *ste_children; /* list of child ids */
_Py_block_ty ste_type; /* module, class, or function */
int ste_unoptimized; /* false if namespace is optimized */
- unsigned ste_nested : 1; /* true if block is nested */
+ int ste_nested : ; /* true if block is nested */
unsigned ste_free : 1; /* true if block has free variables */
unsigned ste_child_free : 1; /* true if a child block has free vars,
including free refs to globals */
diff --git a/Python/symtable.c b/Python/symtable.c
index 5e67c06..46909fc 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -112,6 +112,7 @@ static PyMemberDef ste_memberlist[] = {
{"symbols", T_OBJECT, OFF(ste_symbols), READONLY},
{"varnames", T_OBJECT, OFF(ste_varnames), READONLY},
{"children", T_OBJECT, OFF(ste_children), READONLY},
+ {"nested", T_INT, OFF(ste_nested), READONLY},
{"type", T_INT, OFF(ste_type), READONLY},
{"lineno", T_INT, OFF(ste_lineno), READONLY},
{NULL}