public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d39e9
)
gcvt was called with wrong precision
author
ceriel
<none@none>
Thu, 4 Aug 1988 15:48:20 +0000
(15:48 +0000)
committer
ceriel
<none@none>
Thu, 4 Aug 1988 15:48:20 +0000
(15:48 +0000)
lang/cem/libcc/stdio/doprnt.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/stdio/doprnt.c
b/lang/cem/libcc/stdio/doprnt.c
index
9e5516c
..
55f0e2f
100644
(file)
--- a/
lang/cem/libcc/stdio/doprnt.c
+++ b/
lang/cem/libcc/stdio/doprnt.c
@@
-221,7
+221,7
@@
_doprnt(fmt,ap,stream)
case 'g':
if (ndigit >= sizeof(buf)) ndigit = sizeof(buf) - 1;
dbl = va_arg(ap, double);
- s = gcvt(dbl, ndigit ? ndigit
+1
: 6, s) + strlen(s);
+ s = gcvt(dbl, ndigit ? ndigit : 6, s) + strlen(s);
break;
#endif
case 'r':