diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 08:31:41 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 08:31:41 (GMT) |
commit | dfabec2d1817e08fda70c19ed9248819b6a1fb22 (patch) | |
tree | e6290359efd5d2e424b05f25a19b6ed3cee6e872 /lib | |
parent | 4abc86e0bd9dd168a18713b7c753348031dbb872 (diff) | |
download | lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.zip lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.tar.gz lz4-dfabec2d1817e08fda70c19ed9248819b6a1fb22.tar.bz2 |
Fixed a few minor visual analyzer warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index d1733d0..e5458bb 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -205,8 +205,8 @@ static void LZ4F_writeLE32 (BYTE* dstPtr, U32 value32) static U64 LZ4F_readLE64 (const BYTE* srcPtr) { U64 value64 = srcPtr[0]; - value64 += (srcPtr[1]<<8); - value64 += (srcPtr[2]<<16); + value64 += ((U64)srcPtr[1]<<8); + value64 += ((U64)srcPtr[2]<<16); value64 += ((U64)srcPtr[3]<<24); value64 += ((U64)srcPtr[4]<<32); value64 += ((U64)srcPtr[5]<<40); |