summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/gcvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/gcvt.c')
-rw-r--r--src/lib/libc/stdlib/gcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/gcvt.c b/src/lib/libc/stdlib/gcvt.c
index f9528e7e7a..d3ab1b0415 100644
--- a/src/lib/libc/stdlib/gcvt.c
+++ b/src/lib/libc/stdlib/gcvt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gcvt.c,v 1.14 2019/01/25 00:19:25 millert Exp $ */ 1/* $OpenBSD: gcvt.c,v 1.15 2022/12/27 17:10:06 jmc Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2002, 2003, 2006, 2010 4 * Copyright (c) 2002, 2003, 2006, 2010
@@ -61,7 +61,7 @@ gcvt(double value, int ndigit, char *buf)
61 if (sign) 61 if (sign)
62 *dst++ = '-'; 62 *dst++ = '-';
63 63
64 /* Match printf(3) behavior for exponential vs. regular fomatting. */ 64 /* Match printf(3) behavior for exponential vs. regular formatting. */
65 if (decpt <= -4 || decpt > ndigit) { 65 if (decpt <= -4 || decpt > ndigit) {
66 /* exponential format (e.g. 1.2345e+13) */ 66 /* exponential format (e.g. 1.2345e+13) */
67 if (--decpt < 0) { 67 if (--decpt < 0) {