diff options
author | Sven de Marothy <sven@physto.se> | 2004-10-18 16:41:45 +0200 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-10-18 14:41:45 +0000 |
commit | 691e8c0f15d4005a935652529550a7527b3dd201 (patch) | |
tree | 2b1596a76a22e96aee4eebcbc2f546e9974abb19 /libjava | |
parent | bc2fed82b515b792bce1651fe0ad0f1c5d8327ca (diff) | |
download | gcc-691e8c0f15d4005a935652529550a7527b3dd201.tar.gz |
2004-10-18 Sven de Marothy <sven@physto.se>
* java/nio/ByteBufferHelper.java
(putDouble): Use Double.toRawLongBits instead.
From-SVN: r89224
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/nio/ByteBufferHelper.java | 5 |
2 files changed, 8 insertions, 2 deletions
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 <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> 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 + |