Commit 60700546 authored by Stefan Behnel's avatar Stefan Behnel

Code formatting.

parent e0f99a4c
...@@ -318,8 +318,7 @@ def p_typecast(s): ...@@ -318,8 +318,7 @@ def p_typecast(s):
is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode) is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode)
is_template = isinstance(base_type, Nodes.TemplatedTypeNode) is_template = isinstance(base_type, Nodes.TemplatedTypeNode)
is_const_volatile = isinstance(base_type, Nodes.CConstOrVolatileTypeNode) is_const_volatile = isinstance(base_type, Nodes.CConstOrVolatileTypeNode)
if (not is_memslice and not is_template and not is_const_volatile if not is_memslice and not is_template and not is_const_volatile and base_type.name is None:
and base_type.name is None):
s.error("Unknown type") s.error("Unknown type")
declarator = p_c_declarator(s, empty = 1) declarator = p_c_declarator(s, empty = 1)
if s.sy == '?': if s.sy == '?':
...@@ -330,8 +329,7 @@ def p_typecast(s): ...@@ -330,8 +329,7 @@ def p_typecast(s):
s.expect(">") s.expect(">")
operand = p_factor(s) operand = p_factor(s)
if is_memslice: if is_memslice:
return ExprNodes.CythonArrayNode(pos, base_type_node=base_type, return ExprNodes.CythonArrayNode(pos, base_type_node=base_type, operand=operand)
operand=operand)
return ExprNodes.TypecastNode(pos, return ExprNodes.TypecastNode(pos,
base_type = base_type, base_type = base_type,
......
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