Skip to content

Commit

Permalink
compiler: fix real dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Mar 2, 2025
1 parent cd01768 commit 805a1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/ir/cgen/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _prec(self, expr):
if dtype is None or np.issubdtype(dtype, np.integer):
real = any(isinstance(i, Float) for i in expr.atoms())
if real:
return self.dtype
return np.promote_types(self.dtype, np.float32).type
else:
return dtype or self.dtype
else:
Expand Down

0 comments on commit 805a1e3

Please sign in to comment.