OSDN Git Service

2004-10-18 Sven de Marothy <sven@physto.se>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Oct 2004 14:41:45 +0000 (14:41 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Oct 2004 14:41:45 +0000 (14:41 +0000)
* java/nio/ByteBufferHelper.java
(putDouble): Use Double.toRawLongBits instead.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89224 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0cac274..a61dbee 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 e5c522a..cbc1f11 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
+