Module Name:    src
Committed By:   he
Date:           Sun Mar 27 11:21:55 UTC 2011

Modified Files:
        src/lib/libc/gdtoa: strtod.c

Log Message:
Fix this so that it builds for vax; where the compiler balks at the
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.

OK'ed by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 src/lib/libc/gdtoa/strtod.c:1.8
--- src/lib/libc/gdtoa/strtod.c:1.7	Mon Mar 21 12:53:50 2011
+++ src/lib/libc/gdtoa/strtod.c	Sun Mar 27 11:21:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.7 2011/03/21 12:53:50 christos Exp $ */
+/* $NetBSD: strtod.c,v 1.8 2011/03/27 11:21:54 he Exp $ */
 
 /****************************************************************
 
@@ -1000,7 +1000,7 @@
 				dval(&rv0) = dval(&rv);
 				word0(&rv) += P*Exp_msk1;
 				dval(&adj) = dval(&aadj1) * ulp(&rv);
-				dval(&rv) += adj;
+				dval(&rv) += dval(&adj);
 #ifdef IBM
 				if ((word0(&rv) & Exp_mask) <  P*Exp_msk1)
 #else
@@ -1019,7 +1019,7 @@
 				}
 			else {
 				dval(&adj) = dval(&aadj1) * ulp(&rv);
-				dval(&rv) += adj;
+				dval(&rv) += dval(&adj);
 				}
 #else /*Sudden_Underflow*/
 			/* Compute dval(&adj) so that the IEEE rounding rules will

Reply via email to