Commit 5775e029 authored by David Woodhouse's avatar David Woodhouse

Stop using 1ULL as the base value to be shifted in LZS GET_BITS()

Keeping this as an int is fine; it'll never be shifted by more than 9. And
the promotion of (src[0] << (bits - bits_left)) from int to unsigned long
long makes Coverity unhappy because of the sign-extension.
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 21918c38
......@@ -42,7 +42,7 @@ do { \
if (bits >= 8 || bits >= bits_left) { \
/* We need *all* the bits that are left in the current \
* byte. Take them and bump the input pointer. */ \
data = (src[0] << (bits - bits_left)) & ((1ULL << bits) - 1); \
data = (src[0] << (bits - bits_left)) & ((1 << bits) - 1); \
src++; \
srclen--; \
bits_left += 8 - bits; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment