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 dce01c15..8d37bc72 100644
--- a/stream.c
+++ b/stream.c
@@ -1285,7 +1285,7 @@ val vformat(val stream, val fmtstr, va_list vl)
precision = 0;
goto output_num;
default:
- if (width != 0) {
+ if (width != 0 || precision_p) {
val str = format(nil, ch == 'a' ? lit("~a") : lit("~s"),
obj, nao);
if (!vformat_str(stream, str, width, left, precision))