Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gdtoa delint



details:   https://anonhg.NetBSD.org/src/rev/1678dac6d65c
branches:  trunk
changeset: 955092:1678dac6d65c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 18 14:19:34 2020 +0000

description:
delint

diffstat:

 lib/libc/gdtoa/strtod.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3a4eb0d3453f -r 1678dac6d65c lib/libc/gdtoa/strtod.c
--- a/lib/libc/gdtoa/strtod.c   Fri Sep 18 14:19:08 2020 +0000
+++ b/lib/libc/gdtoa/strtod.c   Fri Sep 18 14:19:34 2020 +0000
@@ -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 @@
                                /* 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 @@
 #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;



Home | Main Index | Thread Index | Old Index