2004-10-18 Sven de Marothy <sven@physto.se>

* java/nio/ByteBufferHelper.java
	(putDouble): Use Double.toRawLongBits instead.

From-SVN: r89224
This commit is contained in:
Sven de Marothy 2004-10-18 16:41:45 +02:00 committed by Michael Koch
parent bc2fed82b5
commit 691e8c0f15
2 changed files with 8 additions and 2 deletions

View 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>

View 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