THRIFT-1325 Thrift SVN and latest GCC issue: Undefined symbols: "apache::thrift:...
authorRoger Meier <roger@apache.org>
Thu, 8 Dec 2011 11:32:21 +0000 (11:32 +0000)
committerRoger Meier <roger@apache.org>
Thu, 8 Dec 2011 11:32:21 +0000 (11:32 +0000)
Patch: Brandon Arp

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1211842 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/protocol/TBinaryProtocol.h
lib/cpp/src/protocol/TDenseProtocol.h

index edb8834..37d33f4 100644 (file)
@@ -36,8 +36,8 @@ template <class Transport_>
 class TBinaryProtocolT
   : public TVirtualProtocol< TBinaryProtocolT<Transport_> > {
  protected:
-  static const int32_t VERSION_MASK = 0xffff0000;
-  static const int32_t VERSION_1 = 0x80010000;
+  static const int32_t VERSION_MASK = ((int32_t)0xffff0000);
+  static const int32_t VERSION_1 = ((int32_t)0x80010000);
   // VERSION_2 (0x80020000)  is taken by TDenseProtocol.
 
  public:
index 438ed89..fc25cb7 100644 (file)
@@ -59,9 +59,9 @@ namespace apache { namespace thrift { namespace protocol {
 class TDenseProtocol
   : public TVirtualProtocol<TDenseProtocol, TBinaryProtocol> {
  protected:
-  static const int32_t VERSION_MASK = 0xffff0000;
+  static const int32_t VERSION_MASK = ((int32_t)0xffff0000);
   // VERSION_1 (0x80010000)  is taken by TBinaryProtocol.
-  static const int32_t VERSION_2 = 0x80020000;
+  static const int32_t VERSION_2 = ((int32_t)0x80020000);
 
  public:
   typedef apache::thrift::reflection::local::TypeSpec TypeSpec;