Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MSVC truncation of constant value
Summary: This warning: ``` thrift\lib\cpp2\protocol\compactprotocol.h(47): warning C4309: 'static_cast': truncation of constant value thrift\lib\cpp2\protocol\compactprotocol.h(48): warning C4309: 'static_cast': truncation of constant value ``` happens when `static_cast`ing a number >= 128 into a negative 8-bit value. Fix it using an unrestricted cast. For clarity, removing the unnecesssary cast on 0x02 just above it. Reviewed By: yfeldblum Differential Revision: D17789349 fbshipit-source-id: aebd3688ae9592783fea892a9a04e24b16c38f51
- Loading branch information