mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-1986 TCompactProtocol constants truncated on Windows (C4309)
Patch: Konrad Grochowski
This commit is contained in:
parent
64a799d28e
commit
cde23dfd2d
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user