fix TD-1640

This commit is contained in:
Hongze Cheng 2020-09-30 11:02:52 +08:00
parent a64d53313c
commit d8991f1913
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ extern "C" {
#define COMP_OVERFLOW_BYTES 2
#define BITS_PER_BYTE 8
// Masks
#define INT64MASK(_x) ((1ul << _x) - 1)
#define INT64MASK(_x) ((((uint64_t)1) << _x) - 1)
#define INT32MASK(_x) (((uint32_t)1 << _x) - 1)
#define INT8MASK(_x) (((uint8_t)1 << _x) - 1)
// Compression algorithm