You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/03/22 22:35:13 UTC

git commit: THRIFT-1845 cpp: Fix compiler warning caused by implicit string conversion with Xcode 4.6 Patch: Nate Rosenblum

Updated Branches:
  refs/heads/master e491d298f -> a7ab94d41


THRIFT-1845 cpp: Fix compiler warning caused by implicit string conversion with Xcode 4.6
Patch: Nate Rosenblum


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/a7ab94d4
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/a7ab94d4
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/a7ab94d4

Branch: refs/heads/master
Commit: a7ab94d414ee949bb38dad3e62cd771d6cc8781e
Parents: e491d29
Author: Roger Meier <ro...@apache.org>
Authored: Fri Mar 22 22:34:16 2013 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Fri Mar 22 22:34:16 2013 +0100

----------------------------------------------------------------------
 lib/cpp/src/thrift/protocol/TCompactProtocol.tcc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/a7ab94d4/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc b/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
index 55b784f..79f1b6b 100644
--- a/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
+++ b/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
@@ -801,7 +801,7 @@ TType TCompactProtocolT<Transport_>::getTType(int8_t type) {
     case detail::compact::CT_STRUCT:
       return T_STRUCT;
     default:
-      throw TException("don't know what type: " + type);
+      throw TException(std::string("don't know what type: ") + (char)type);
   }
   return T_STOP;
 }