Commit 691e8c0f by Sven de Marothy Committed by Michael Koch

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

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

From-SVN: r89224
parent bc2fed82
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>
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment