Commit 67002956 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'bugfix-collate-types-for-boolean-function' into 'master'

Bugfix: this bracket should not be here (collate_types returns single type)

See merge request pycodegen/pystencils!63
parents 1956c6a3 66706800
...@@ -430,7 +430,7 @@ def collate_types(types, forbid_collation_to_float=False): ...@@ -430,7 +430,7 @@ def collate_types(types, forbid_collation_to_float=False):
if forbid_collation_to_float: if forbid_collation_to_float:
types = [t for t in types if not (hasattr(t, 'is_float') and t.is_float())] types = [t for t in types if not (hasattr(t, 'is_float') and t.is_float())]
if not types: if not types:
return [create_type('int32')] return create_type('int32')
# Pointer arithmetic case i.e. pointer + integer is allowed # Pointer arithmetic case i.e. pointer + integer is allowed
if any(type(t) is PointerType for t in types): if any(type(t) is PointerType for t in types):
......
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