Commit 2a6780c7 authored by Stefan Behnel's avatar Stefan Behnel

fix array size check in Shadow module ('float' isn't Python's float)

parent 50e86dd4
......@@ -63,7 +63,7 @@ def index_type(base_type, item):
return _ArrayType(base_type, 1, is_c_contig=bool(item.step))
else:
# int[8] etc.
assert int(item) == item and not isinstance(item, float) # array size must be a plain integer
assert int(item) == item # array size must be a plain integer
array(base_type, item)
# END shameless copy
......
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