Commit 7fdf5d61 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fixed another bug with [] indexing

parent 06a30603
......@@ -1629,7 +1629,7 @@ def p_buffer_access(s, base_type_node):
# s.sy == '['
pos = s.position()
s.next()
if s.sy == ']':
if s.sy == ']' or s.sy == 'INT':
# not buffer, could be [] on C type nameless array arguments
s.put_back('[', '[')
return base_type_node
......
......@@ -11,3 +11,9 @@ cdef extern from *:
ctypedef MyStruct* MyStructP
cdef void baz(MyStructP[])
cdef struct OtherStruct:
int a
a = sizeof(int[23][34])
b = sizeof(OtherStruct[43])
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