summaryrefslogtreecommitdiff
path: root/sys/src/libc
diff options
context:
space:
mode:
authorppatience0 <ppatience0@gmail.com>2013-03-01 17:23:26 -0500
committerppatience0 <ppatience0@gmail.com>2013-03-01 17:23:26 -0500
commit3d908529e9f209be066b56be817f724a7b89d9c4 (patch)
tree3a5fbe4cd3add6c24e67eb5241c8ef5372c41dc2 /sys/src/libc
parent6bd2c26a85e3487f1647df91462fff9191632aed (diff)
fltfmt: fix %g not printing as %e in some cases when it should
Diffstat (limited to 'sys/src/libc')
-rw-r--r--sys/src/libc/fmt/fltfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libc/fmt/fltfmt.c b/sys/src/libc/fmt/fltfmt.c
index a00a6b14a..84bd0c91c 100644
--- a/sys/src/libc/fmt/fltfmt.c
+++ b/sys/src/libc/fmt/fltfmt.c
@@ -204,7 +204,7 @@ found:
*/
if(xadd(s1, c2, 5))
e++;
- if(e >= -5 && e <= prec) {
+ if(e >= -4 && e <= prec) {
c1 = -e - 1;
c4 = prec - e;
chr = 'h'; // flag for 'f' style