diff options
author | Yann Collet <cyan@fb.com> | 2020-11-14 20:39:23 -0800 |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2020-11-14 20:39:23 -0800 |
commit | f61b034cd7cd16c288db999263a77ab8a0e05610 (patch) | |
tree | 72694a805b2f9497c5bbc7ac33ed08ad1ed6b415 | |
parent | 99ba44a596d2b86090fa85bf09f9a2642bfd0001 (diff) | |
download | lz4-f61b034cd7cd16c288db999263a77ab8a0e05610.tar.gz lz4-f61b034cd7cd16c288db999263a77ab8a0e05610.tar.bz2 lz4-f61b034cd7cd16c288db999263a77ab8a0e05610.zip |
fix minor win32 warning
-rw-r--r-- | lib/lz4hc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 8c6063f..77c9f43 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -172,7 +172,8 @@ static unsigned LZ4HC_countPattern(const BYTE* ip, const BYTE* const iEnd, U32 const pattern32) { const BYTE* const iStart = ip; - reg_t const pattern = (sizeof(pattern)==8) ? (reg_t)pattern32 + (((reg_t)pattern32) << 32) : pattern32; + reg_t const pattern = (sizeof(pattern)==8) ? + (reg_t)pattern32 + (((reg_t)pattern32) << (sizeof(pattern)*4)) : pattern32; while (likely(ip < iEnd-(sizeof(pattern)-1))) { reg_t const diff = LZ4_read_ARCH(ip) ^ pattern; |