Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
66706800
Commit
66706800
authored
Sep 27, 2019
by
Stephan Seitz
Browse files
Bugfix: this bracket should not be here (collate_types returns single
type)
parent
0ff425f3
Pipeline
#18471
passed with stage
in 6 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/data_types.py
View file @
66706800
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment