Module Name: src
Committed By: christos
Date: Fri Sep 18 14:19:34 UTC 2020
Modified Files:
src/lib/libc/gdtoa: strtod.c
Log Message:
delint
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/gdtoa/strtod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gdtoa/strtod.c
diff -u src/lib/libc/gdtoa/strtod.c:1.16 src/lib/libc/gdtoa/strtod.c:1.17
--- src/lib/libc/gdtoa/strtod.c:1.16 Fri Sep 18 10:06:45 2020
+++ src/lib/libc/gdtoa/strtod.c Fri Sep 18 10:19:34 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.16 2020/09/18 14:06:45 christos Exp $ */
+/* $NetBSD: strtod.c,v 1.17 2020/09/18 14:19:34 christos Exp $ */
/****************************************************************
@@ -743,7 +743,7 @@ _int_strtod_l(CONST char *s00, char **se
/* dval(&adj) = Rounding ? ceil(&adj) : floor(&adj); */
y = adj.d;
if (y != adj.d) {
- if (!((Rounding>>1) ^ dsign))
+ if (!(((unsigned int)Rounding>>1) ^ (unsigned int)dsign))
y++;
dval(&adj) = y;
}
@@ -976,7 +976,7 @@ _int_strtod_l(CONST char *s00, char **se
#ifdef Avoid_Underflow
if (scale && y <= 2*P*Exp_msk1) {
if (aadj <= 0x7fffffff) {
- if ((z = aadj) <= 0)
+ if ((z = aadj) == 0)
z = 1;
aadj = z;
dval(&aadj1) = dsign ? aadj : -aadj;