Author: dreiss
Date: Wed Aug  5 16:42:59 2009
New Revision: 801293

URL: http://svn.apache.org/viewvc?rev=801293&view=rev
Log:
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.

Modified:
    incubator/thrift/trunk/lib/cpp/src/protocol/TProtocol.h

Modified: incubator/thrift/trunk/lib/cpp/src/protocol/TProtocol.h
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/protocol/TProtocol.h?rev=801293&r1=801292&r2=801293&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/protocol/TProtocol.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/protocol/TProtocol.h Wed Aug  5 16:42:59 
2009
@@ -107,8 +107,8 @@
       | (((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)


Reply via email to