summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2016-05-25 09:34:40 +0000
committerkrasimir <krasimir@chalmers.se>2016-05-25 09:34:40 +0000
commit41a3054e9be03f7496fdbe7d0716e7986524bb35 (patch)
treef8169739ede7f9db9a0e9fd03de907dfec7c1d3c /src/runtime
parentb34ee6f377ca69be2f23726ad6b5d24c914e425c (diff)
when expressions with Float literals are printed, we should use the same format that is used by the linearizer
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/c/pgf/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/expr.c b/src/runtime/c/pgf/expr.c
index ebb3e8138..3c37a4b72 100644
--- a/src/runtime/c/pgf/expr.c
+++ b/src/runtime/c/pgf/expr.c
@@ -1189,7 +1189,7 @@ pgf_print_literal(PgfLiteral lit,
}
case PGF_LITERAL_FLT: {
PgfLiteralFlt* lit = ei.data;
- gu_double_to_string(lit->val, out, err);
+ gu_printf(out, err, "%lf", lit->val);
break;
}
default: