diff options
author | Michi Henning <michi@zeroc.com> | 2003-08-06 03:15:33 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-08-06 03:15:33 +0000 |
commit | 47a76c5e48212a3ea6d45957aafaadb83e8fc248 (patch) | |
tree | fbc7bb93e7557219aaa644ead8a4fb5ea17e24df /cpp/src | |
parent | Added ice_clone() for classes. (diff) | |
download | ice-47a76c5e48212a3ea6d45957aafaadb83e8fc248.tar.bz2 ice-47a76c5e48212a3ea6d45957aafaadb83e8fc248.tar.xz ice-47a76c5e48212a3ea6d45957aafaadb83e8fc248.zip |
Fixed bug in marshaling of doubles for big-endian machines.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 21b68335732..4a79bb6fc96 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -871,7 +871,7 @@ IceInternal::BasicStream::write(Double v) resize(pos + sizeof(Double)); Byte* dest = &b[pos]; #ifdef ICE_BIG_ENDIAN - const Byte* src = reinterpret_cast<const Byte*>(&v) + sizeof(Int); + const Byte* src = reinterpret_cast<const Byte*>(&v) + sizeof(Double); *dest++ = *--src; *dest++ = *--src; *dest++ = *--src; |