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:
parent
bc2fed82b5
commit
691e8c0f15
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user