Commit 0493847c authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

#290: whoops

parent 800a0a96
...@@ -2168,7 +2168,7 @@ def p_c_struct_or_union_definition(s, pos, ctx): ...@@ -2168,7 +2168,7 @@ def p_c_struct_or_union_definition(s, pos, ctx):
if s.systring == 'packed': if s.systring == 'packed':
packed = True packed = True
s.next() s.next()
if s.sy != 'IDENT' and s.systring != 'struct': if s.sy != 'IDENT' or s.systring != 'struct':
s.expected('struct') s.expected('struct')
# s.sy == ident 'struct' or 'union' # s.sy == ident 'struct' or 'union'
kind = s.systring kind = s.systring
......
cdef packed foo:
pass
_ERRORS = u"""
1:12: Expected 'struct'
"""
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