2004-10-18 Sven de Marothy <sven@physto.se>
authorSven de Marothy <sven@physto.se>
Mon, 18 Oct 2004 14:41:45 +0000 (16:41 +0200)
committerMichael Koch <mkoch@gcc.gnu.org>
Mon, 18 Oct 2004 14:41:45 +0000 (14:41 +0000)
* java/nio/ByteBufferHelper.java
(putDouble): Use Double.toRawLongBits instead.

From-SVN: r89224

libjava/ChangeLog
libjava/java/nio/ByteBufferHelper.java

index 0cac274478ce7f6ab46afc3e89ba6a33698c2d02..a61dbee1a30e418fd548ed59cccb65da987c1924 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-18  Sven de Marothy  <sven@physto.se>
+
+       * java/nio/ByteBufferHelper.java
+       (putDouble): Use Double.toRawLongBits instead.
+
 2004-10-18  Mark Wielaard  <mark@klomp.org>
        Andrew Haley  <aph@redhat.com>
 
index e5c522acd4dcc9d5f77b1570f03bef85de93d3cf..cbc1f110a6f6de6dae5d1ce17806a45616472fa4 100644 (file)
@@ -327,7 +327,7 @@ final class ByteBufferHelper
 
   public static void putDouble (ByteBuffer buffer, double value, ByteOrder order)
   {
-    putLong (buffer, Double.doubleToLongBits (value), order);
+    putLong (buffer, Double.doubleToRawLongBits (value), order);
   }
   
   public static double getDouble (ByteBuffer buffer, int index, ByteOrder order)
@@ -338,6 +338,7 @@ final class ByteBufferHelper
   public static void putDouble (ByteBuffer buffer, int index,
                                double value, ByteOrder order)
   {
-    putLong (buffer, index, Double.doubleToLongBits (value), order);
+    putLong (buffer, index, Double.doubleToRawLongBits (value), order);
   }
 } // ByteBufferHelper
+