Thrift-1171: Perl write/readDouble assumes little-endian platform
authorJake Farrell <jfarrell@apache.org>
Fri, 3 Jun 2011 17:03:00 +0000 (17:03 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 3 Jun 2011 17:03:00 +0000 (17:03 +0000)
commit5309bd022959bed1592d3d70da97eaebc98aa282
tree215071107d16e2289612f1ee4a351d34f26f6ce7
parent73b8dfc92ce2ca51d098e3780d84665698a4a94d
Thrift-1171: Perl write/readDouble assumes little-endian platform
Client: perl
Patch: Andy Grundman

The code for handling doubles uses pack 'd' (pack to native byte order) and then reverses the bytes. This works on little-endian systems but will produce backwards data on big-endian systems.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1131110 13f79535-47bb-0310-9956-ffa450edef68
lib/perl/lib/Thrift/BinaryProtocol.pm