diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-04-01 16:30:36 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-04-01 16:30:36 (GMT) |
commit | ef7cd83271eb6a513dd4fe389ee37a9bfc8e00e6 (patch) | |
tree | 304d48c715c9db81362fcaa1148f3089755ab04f | |
parent | 28e237e954098c418f048a871aa53199d92314f4 (diff) | |
download | lz4-ef7cd83271eb6a513dd4fe389ee37a9bfc8e00e6.zip lz4-ef7cd83271eb6a513dd4fe389ee37a9bfc8e00e6.tar.gz lz4-ef7cd83271eb6a513dd4fe389ee37a9bfc8e00e6.tar.bz2 |
Fixed issue 160, reported by Eric Berge
-rw-r--r-- | lib/lz4frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 474b196..6c65d0b 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -204,7 +204,7 @@ static U64 LZ4F_readLE64 (const BYTE* srcPtr) U64 value64 = srcPtr[0]; value64 += (srcPtr[1]<<8); value64 += (srcPtr[2]<<16); - value64 += (srcPtr[3]<<24); + value64 += ((U64)srcPtr[3]<<24); value64 += ((U64)srcPtr[4]<<32); value64 += ((U64)srcPtr[5]<<40); value64 += ((U64)srcPtr[6]<<48); |