summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index a853f5e..e1dd463 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -446,6 +446,7 @@ static PyObject* ast2obj_bool(bool b)
self.emit("static int init_types(void)",0)
self.emit("{", 0)
self.emit("if (initialized) return 1;", 1)
+ self.emit("initialized = 1;", 1)
for dfn in mod.dfns:
self.visit(dfn)
self.emit("return 1;", 0);