Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
pystencils
Commits
26fce4ff
Commit
26fce4ff
authored
Jan 08, 2021
by
Dominik Thoennes
Browse files
use int64_t for loops to prevent warnings when comparing to arguments
parent
98f072ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/backends/cbackend.py
View file @
26fce4ff
...
...
@@ -227,7 +227,7 @@ class CBackend:
def
_print_LoopOverCoordinate
(
self
,
node
):
counter_symbol
=
node
.
loop_counter_name
start
=
f
"int
{
counter_symbol
}
=
{
self
.
sympy_printer
.
doprint
(
node
.
start
)
}
"
start
=
f
"int
64_t
{
counter_symbol
}
=
{
self
.
sympy_printer
.
doprint
(
node
.
start
)
}
"
condition
=
f
"
{
self
.
sympy_printer
.
doprint
(
node
.
relational
(
node
.
loop_counter_symbol
,
node
.
stop
))
}
"
#condition = f"{counter_symbol} < {self.sympy_printer.doprint(node.stop)}"
update
=
f
"
{
counter_symbol
}
+=
{
self
.
sympy_printer
.
doprint
(
node
.
step
)
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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