From: David Reiss Date: Wed, 5 Aug 2009 16:42:59 +0000 (+0000) Subject: THRIFT-555. cpp: Fix macro defintions for TCompact on non-GNU big endian X-Git-Tag: 0.2.0~47 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=3029786ce1dda4bb625e72ebb5202c0b89e233a2;p=common%2Fthrift.git THRIFT-555. cpp: Fix macro defintions for TCompact on non-GNU big endian We were defining ntolell and letonll, but we were only using htolell and letohll. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@801293 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h index 40258277..bf38598c 100644 --- a/lib/cpp/src/protocol/TProtocol.h +++ b/lib/cpp/src/protocol/TProtocol.h @@ -107,8 +107,8 @@ using apache::thrift::transport::TTransport; | (((n) & 0x0000000000ff0000ull) << 24) \ | (((n) & 0x000000000000ff00ull) << 40) \ | (((n) & 0x00000000000000ffull) << 56) ) -# define ntolell(n) bswap_64(n) -# define letonll(n) bswap_64(n) +# define htolell(n) bswap_64(n) +# define letohll(n) bswap_64(n) # endif /* GNUC & GLIBC */ #elif __BYTE_ORDER == __LITTLE_ENDIAN # define htolell(n) (n)