Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
64a799d
)
THRIFT-1986 TCompactProtocol constants truncated on Windows (C4309)
author
Roger Meier
<roger@apache.org>
Tue, 4 Jun 2013 19:28:06 +0000
(21:28 +0200)
committer
Roger Meier
<roger@apache.org>
Tue, 4 Jun 2013 19:28:06 +0000
(21:28 +0200)
Patch: Konrad Grochowski
lib/cpp/src/thrift/protocol/TCompactProtocol.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/thrift/protocol/TCompactProtocol.h
b/lib/cpp/src/thrift/protocol/TCompactProtocol.h
index
7311f85
..
23ee1a9
100644
(file)
--- 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 =
(int8_t)0x82
;
+ static const int8_t PROTOCOL_ID =
0x82u
;
static const int8_t VERSION_N = 1;
static const int8_t VERSION_MASK = 0x1f; // 0001 1111
- static const int8_t TYPE_MASK =
(int8_t)0xE0
; // 1110 0000
+ static const int8_t TYPE_MASK =
0xE0u
; // 1110 0000
static const int32_t TYPE_SHIFT_AMOUNT = 5;
Transport_* trans_;