From 66706800218603b5b7273f72cb13c265791876d4 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 27 Sep 2019 15:09:39 +0200 Subject: [PATCH] Bugfix: this bracket should not be here (collate_types returns single type) --- pystencils/data_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystencils/data_types.py b/pystencils/data_types.py index 18699253..efee3d9c 100644 --- a/pystencils/data_types.py +++ b/pystencils/data_types.py @@ -430,7 +430,7 @@ def collate_types(types, forbid_collation_to_float=False): if forbid_collation_to_float: types = [t for t in types if not (hasattr(t, 'is_float') and t.is_float())] if not types: - return [create_type('int32')] + return create_type('int32') # Pointer arithmetic case i.e. pointer + integer is allowed if any(type(t) is PointerType for t in types): -- GitLab