Commit cc09babd authored by Stefan Behnel's avatar Stefan Behnel

fix for name declarations of interned string values in functions

parent 01b2ec1c
......@@ -248,8 +248,9 @@ class BlockNode:
if entries:
code.putln("")
for entry in entries:
code.putln(
"static PyObject *%s;" % entry.pystring_cname)
if not entry.is_interned:
code.putln(
"static PyObject *%s;" % entry.pystring_cname)
def generate_interned_num_decls(self, env, code):
# Flush accumulated interned nums from the global scope
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment