summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authoraqrit <vippor_cs@yahoo.com>2020-08-17 21:53:07 (GMT)
committerGitHub <noreply@github.com>2020-08-17 21:53:07 (GMT)
commite45defa8bdfe711e3e6c800970516038ca6d7143 (patch)
tree1c608de0b221268cf694979675238c19e9ca2bf6 /lib/lz4.c
parente72897402df0b93978d9471979e6d5c62d278b2a (diff)
downloadlz4-e45defa8bdfe711e3e6c800970516038ca6d7143.zip
lz4-e45defa8bdfe711e3e6c800970516038ca6d7143.tar.gz
lz4-e45defa8bdfe711e3e6c800970516038ca6d7143.tar.bz2
silence warning
MSVC debug mode complains
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 5d0a2d2..98fc657 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -538,8 +538,8 @@ static unsigned LZ4_NbCommonBytes (reg_t val)
4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,
};
const U64 mask = 0x0101010101010101ULL;
- val = (((val >> 8) - mask) | val) & mask;
- return ctz7_tab[((U64)(val * 0x0080402010080402ULL)) >> 57];
+ U64 t = (((val >> 8) - mask) | val) & mask;
+ return ctz7_tab[(t * 0x0080402010080402ULL) >> 57];
# endif
} else /* 32 bits */ {
# if (defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 3) || \