Skip to content
Snippets Groups Projects
Commit 5e7738b1 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Convert all constants to DP floating point on codegen.

parent 1f600d72
No related branches found
No related tags found
No related merge requests found
......@@ -294,11 +294,9 @@ class LoopyCCodeMapper(CCodeMapper):
if isinstance(expr, complex):
# FIXME: type-variable
return "(cdouble_t) (%s, %s)" % (repr(expr.real), repr(expr.imag))
elif isinstance(expr, float):
# FIXME: type-variable
return "%s" % repr(expr)
else:
return CCodeMapper.map_constant(self, expr, enclosing_prec)
# FIXME: type-variable
return repr(float(expr))
def map_call(self, expr, enclosing_prec):
from pymbolic.primitives import Variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment