Commit 26fce4ff authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

use int64_t for loops to prevent warnings when comparing to arguments

parent 98f072ff
......@@ -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"int64_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)}"
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