diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0cac274478c..a61dbee1a30 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-10-18 Sven de Marothy + + * java/nio/ByteBufferHelper.java + (putDouble): Use Double.toRawLongBits instead. + 2004-10-18 Mark Wielaard Andrew Haley diff --git a/libjava/java/nio/ByteBufferHelper.java b/libjava/java/nio/ByteBufferHelper.java index e5c522acd4d..cbc1f110a6f 100644 --- a/libjava/java/nio/ByteBufferHelper.java +++ b/libjava/java/nio/ByteBufferHelper.java @@ -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 +