From 691e8c0f15d4005a935652529550a7527b3dd201 Mon Sep 17 00:00:00 2001 From: Sven de Marothy Date: Mon, 18 Oct 2004 16:41:45 +0200 Subject: [PATCH] 2004-10-18 Sven de Marothy * java/nio/ByteBufferHelper.java (putDouble): Use Double.toRawLongBits instead. From-SVN: r89224 --- libjava/ChangeLog | 5 +++++ 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 + + * 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 +