Commit 09aac374 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash

parent 895e2061
...@@ -2816,7 +2816,10 @@ class IndexNode(ExprNode): ...@@ -2816,7 +2816,10 @@ class IndexNode(ExprNode):
keyword_args = None) keyword_args = None)
return type_node.analyse(env, base_type = base_type) return type_node.analyse(env, base_type = base_type)
else: else:
return PyrexTypes.CArrayType(base_type, int(self.index.compile_time_value(env))) index = self.index.compile_time_value(env)
if index is not None:
return PyrexTypes.CArrayType(base_type, int(index))
# otherwise: error
return None return None
def type_dependencies(self, env): def type_dependencies(self, env):
......
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