summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgen.c b/cgen.c
index 222d624..2cb7dcb 100644
--- a/cgen.c
+++ b/cgen.c
@@ -5,7 +5,7 @@ static bool cgen_expr(CGenerator *g, Expression *e) {
break;
case EXPR_FLOAT_LITERAL:
/* TODO: more precision */
- cgen_write(g, "%f", e->floatl);
+ cgen_write(g, "%f", (double)e->floatl);
break;
case EXPR_STR_LITERAL:
cgen_write(g, "\"");