public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f4cde
)
Fixed bug
author
ceriel
<none@none>
Mon, 22 Apr 1991 11:29:48 +0000
(11:29 +0000)
committer
ceriel
<none@none>
Mon, 22 Apr 1991 11:29:48 +0000
(11:29 +0000)
lang/cem/libcc.ansi/stdlib/ext_comp.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/stdlib/ext_comp.c
b/lang/cem/libcc.ansi/stdlib/ext_comp.c
index
e4117c3
..
656ae89
100644
(file)
--- a/
lang/cem/libcc.ansi/stdlib/ext_comp.c
+++ b/
lang/cem/libcc.ansi/stdlib/ext_comp.c
@@
-660,8
+660,8
@@
_ext_str_cvt(struct EXTEND *e, int ndigit, int *decpt, int *sign, int ecvtflag)
else *p++ = '0';
/* Check that remainder is still significant */
if (cmp_ext(&m, e) > 0 || cmp_ext(e, &oneminm) > 0) {
+ if (e->m1 && e->exp >= -1) *(p-1) += 1;
e->m1 = 0;
- if (e->exp >= -1) *(p-1) += 1;
continue;
}
ten_mult(&m);