Commit 8688b1e0 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 43bef567
...@@ -533,9 +533,7 @@ def p_name(s, name): ...@@ -533,9 +533,7 @@ def p_name(s, name):
return ExprNodes.IntNode(pos, value = rep, longness = "L") return ExprNodes.IntNode(pos, value = rep, longness = "L")
elif isinstance(value, float): elif isinstance(value, float):
return ExprNodes.FloatNode(pos, value = rep) return ExprNodes.FloatNode(pos, value = rep)
elif isinstance(value, unicode): elif isinstance(value, (str, unicode)):
return ExprNodes.StringNode(pos, value = value)
elif isinstance(value, str):
return ExprNodes.StringNode(pos, value = value) return ExprNodes.StringNode(pos, value = value)
else: else:
error(pos, "Invalid type for compile-time constant: %s" error(pos, "Invalid type for compile-time constant: %s"
......
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