Skip to content
Snippets Groups Projects
Commit d19dea2a authored by Dominik Thoennes's avatar Dominik Thoennes Committed by Markus Holzer
Browse files

int64_t prevents warnings when comparing loop variable to arguments which are int64_t by default

parent bacfee30
Branches
Tags
1 merge request!204int64_t prevents warnings when comparing loop variable to arguments which are int64_t by default
......@@ -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"{counter_symbol} < {self.sympy_printer.doprint(node.stop)}"
update = f"{counter_symbol} += {self.sympy_printer.doprint(node.step)}"
loop_str = f"for ({start}; {condition}; {update})"
......
......@@ -357,7 +357,7 @@ def plot_2d(stencil, axes=None, figure=None, data=None, textsize='12', **kwargs)
else:
return 0
text_position = [direction[c] + position_correction(direction[c]) for c in (0, 1)]
axes.text(*text_position, annotation, verticalalignment='center',
axes.text(x=text_position[0], y=text_position[1], s=annotation, verticalalignment='center',
zorder=30, horizontalalignment='center', size=textsize,
bbox=dict(boxstyle=text_box_style, facecolor='#00b6eb', alpha=0.85, linewidth=0))
......
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