changeset 278:2956bd6e839d cacao

* patches/icedtea-float-double-trailing-zeros.patch: New file. * Makefile.am (ICEDTEA_PATCHES): Add above patch. * Makefile.in: Regenerate.
author Keith Seitz <keiths@redhat.com>
date Wed, 03 Oct 2007 16:48:03 -0700
parents 5578f6fee3c7
children b40098da4b0f
files ChangeLog Makefile.am patches/icedtea-float-double-trailing-zeros.patch
diffstat 3 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 03 15:44:35 2007 -0700
+++ b/ChangeLog	Wed Oct 03 16:48:03 2007 -0700
@@ -1,3 +1,10 @@
+2007-10-03  Keith Seitz  <keiths@redhat.com>
+
+	* patches/icedtea-float-double-trailing-zeros.patch:
+	New file.
+	* Makefile.am (ICEDTEA_PATCHES): Add above patch.
+	* Makefile.in: Regenerate.
+
 2007-10-03  Keith Seitz  <keiths@redhat.com>
 
 	* patches/icedtea-bytebuffer-compact.patch: New file.
--- a/Makefile.am	Wed Oct 03 15:44:35 2007 -0700
+++ b/Makefile.am	Wed Oct 03 16:48:03 2007 -0700
@@ -144,6 +144,7 @@
 	patches/icedtea-ant.patch \
 	patches/icedtea-gcc-suffix.patch \
 	patches/icedtea-bytebuffer-compact.patch \
+	patches/icedtea-float-double-trailing-zeros.patch \
 	$(FAST_BUILD_PATCH) \
 	$(DISTRIBUTION_PATCHES)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-float-double-trailing-zeros.patch	Wed Oct 03 16:48:03 2007 -0700
@@ -0,0 +1,30 @@
+diff -r 48f64c7da34f j2se/src/share/classes/sun/misc/FloatingDecimal.java
+--- openjdk/j2se/src/share/classes/sun/misc/FloatingDecimal.java	Thu Sep 27 12:56:46 2007 -0700
++++ openjdk/j2se/src/share/classes/sun/misc/FloatingDecimal.java	Wed Oct 03 15:53:31 2007 -0700
+@@ -730,7 +730,7 @@ public class FloatingDecimal{
+ 		 * Thus we will need more than one digit if we're using
+ 		 * E-form
+ 		 */
+-		if ( decExp <= -3 || decExp >= 8 ){
++		if ( decExp < -3 || decExp >= 8 ){
+ 		    high = low = false;
+ 		}
+ 		while( ! low && ! high ){
+@@ -783,7 +783,7 @@ public class FloatingDecimal{
+ 		 * Thus we will need more than one digit if we're using
+ 		 * E-form
+ 		 */
+-		if ( decExp <= -3 || decExp >= 8 ){
++		if ( decExp < -3 || decExp >= 8 ){
+ 		    high = low = false;
+ 		}
+ 		while( ! low && ! high ){
+@@ -847,7 +847,7 @@ public class FloatingDecimal{
+ 	     * Thus we will need more than one digit if we're using
+ 	     * E-form
+ 	     */
+-	    if ( decExp <= -3 || decExp >= 8 ){
++	    if ( decExp < -3 || decExp >= 8 ){
+ 		high = low = false;
+ 	    }
+ 	    while( ! low && ! high ){