diff --git a/pystencils/data_types.py b/pystencils/data_types.py index 186992534a01be2b2f9115876d641a8e3c9cea83..efee3d9c2baad351ee82eab63ec3bf481c469c75 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):