summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 9fc61afc..08c2adc9 100644
--- a/stream.c
+++ b/stream.c
@@ -3709,7 +3709,7 @@ val formatv(val stream_in, val fmtstr, struct args *al)
uw_throwf(error_s, lit("~a: excessive precision: ~s"),
self, num(precision), nao);
- sprintf(num_buf, "%.*g", precision, obj->fl.n);
+ sprintf(num_buf, "%.*g", precision, c_f(obj));
#if CONFIG_LOCALE_TOLERANCE
if (dec_point != '.') {