Commit fd7ebea1 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash

parent beb42251
......@@ -750,6 +750,7 @@ class ExprNode(Node):
return CoerceToBooleanNode(self, env)
else:
error(self.pos, "Type '%s' not acceptable as a boolean" % type)
return self
def coerce_to_integer(self, env):
# If not already some C integer type, coerce to longint.
......
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