Updated Branches: refs/heads/master 729768807 -> b6dfc9036
THRIFT-1986 fix TCompactProtocol constants Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/b6dfc903 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/b6dfc903 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/b6dfc903 Branch: refs/heads/master Commit: b6dfc9036b478219c0427d2a9a7686bf1f415b1c Parents: 7297688 Author: Henrique Mendonça <[email protected]> Authored: Wed Jun 5 14:46:06 2013 +0200 Committer: Henrique Mendonça <[email protected]> Committed: Wed Jun 5 14:46:06 2013 +0200 ---------------------------------------------------------------------- lib/cpp/src/thrift/protocol/TCompactProtocol.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/b6dfc903/lib/cpp/src/thrift/protocol/TCompactProtocol.h ---------------------------------------------------------------------- diff --git a/lib/cpp/src/thrift/protocol/TCompactProtocol.h b/lib/cpp/src/thrift/protocol/TCompactProtocol.h index 23ee1a9..0e78c36 100644 --- a/lib/cpp/src/thrift/protocol/TCompactProtocol.h +++ b/lib/cpp/src/thrift/protocol/TCompactProtocol.h @@ -35,10 +35,10 @@ class TCompactProtocolT : public TVirtualProtocol< TCompactProtocolT<Transport_> > { protected: - static const int8_t PROTOCOL_ID = 0x82u; + static const int8_t PROTOCOL_ID = (int8_t)0x82u; static const int8_t VERSION_N = 1; static const int8_t VERSION_MASK = 0x1f; // 0001 1111 - static const int8_t TYPE_MASK = 0xE0u; // 1110 0000 + static const int8_t TYPE_MASK = (int8_t)0xE0u; // 1110 0000 static const int32_t TYPE_SHIFT_AMOUNT = 5; Transport_* trans_;
