Commit 8aeee1c7 authored by Stefan Behnel's avatar Stefan Behnel

typo

parent 40175f2d
......@@ -46,6 +46,8 @@ class NormalizeTree(CythonTransform):
self.visitchildren(node)
self.is_in_statlist = stacktmp
if not self.is_in_statlist and not self.is_in_expr:
if isinstance(node, TupleNode):
print node
return StatListNode(pos=node.pos, stats=[node])
else:
return node
......
......@@ -1615,7 +1615,7 @@ def p_c_simple_base_type(s, self_flag, nonempty):
# Treat trailing [] on type as buffer access
if s.sy == '[':
if is_basic:
p.error("Basic C types do not support buffer access")
s.error("Basic C types do not support buffer access")
return p_buffer_access(s, type_node)
else:
return type_node
......
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