summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2019-12-03 23:28:03 +0100
committerJens Geyer <jensg@apache.org>2019-12-03 23:28:18 +0100
commit450bc69248043f0ea5ca336d786583ebf3e9d826 (patch)
tree92183d2c6a558e2db71afc83190e2c5aad3d3353 /doc
parent1e049101c580fd2dfd044cb00e2489090199cf0a (diff)
downloadthrift-450bc69248043f0ea5ca336d786583ebf3e9d826.tar.gz
THRIFT-4915 Deserializing double into OrderedFloat always returns zero when using TCompactProtocol
Documentation fix Patch: Jens Geyer
Diffstat (limited to 'doc')
-rw-r--r--doc/specs/thrift-compact-protocol.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/specs/thrift-compact-protocol.md b/doc/specs/thrift-compact-protocol.md
index 02467dd19..6be2a62f8 100644
--- a/doc/specs/thrift-compact-protocol.md
+++ b/doc/specs/thrift-compact-protocol.md
@@ -97,8 +97,9 @@ Where:
### Double encoding
Values of type `double` are first converted to an int64 according to the IEEE 754 floating-point "double format" bit
-layout. Most run-times provide a library to make this conversion. Both the binary protocol as the compact protocol then
-encode the int64 in 8 bytes in big endian order.
+layout. Most run-times provide a library to make this conversion. But while the binary protocol encodes the int64
+in 8 bytes in big endian order, the compact protocol encodes it in little endian order - this is due to an early
+implementation bug that finally became the de-facto standard.
### Boolean encoding