aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qbe.c b/qbe.c
index 5d7c88a..2663085 100644
--- a/qbe.c
+++ b/qbe.c
@@ -1039,7 +1039,7 @@ emitvalue(struct value *v)
switch (v->kind) {
case VALUE_CONST:
if (v->repr->base == 's' || v->repr->base == 'd')
- printf("%c_%.*g", v->repr->base, DBL_DECIMAL_DIG, v->f);
+ printf("%c_%.17g", v->repr->base, v->f);
else
printf("%" PRIu64, v->i);
break;
@@ -1275,7 +1275,7 @@ dataitem(struct expr *expr, uint64_t size)
break;
case EXPRCONST:
if (expr->type->prop & PROPFLOAT)
- printf("%c_%.*g", expr->type->size == 4 ? 's' : 'd', DECIMAL_DIG, expr->constant.f);
+ printf("%c_%.17g", expr->type->size == 4 ? 's' : 'd', expr->constant.f);
else
printf("%" PRIu64, expr->constant.i);
break;