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

fix compiler crash

parent 895e2061
......@@ -2816,7 +2816,10 @@ class IndexNode(ExprNode):
keyword_args = None)
return type_node.analyse(env, base_type = base_type)
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
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