Fixed issue 160, reported by Eric Berge

This commit is contained in:
Yann Collet 2015-04-01 17:30:36 +01:00
parent 28e237e954
commit ef7cd83271

View File

@ -204,7 +204,7 @@ static U64 LZ4F_readLE64 (const BYTE* srcPtr)
U64 value64 = srcPtr[0]; U64 value64 = srcPtr[0];
value64 += (srcPtr[1]<<8); value64 += (srcPtr[1]<<8);
value64 += (srcPtr[2]<<16); value64 += (srcPtr[2]<<16);
value64 += (srcPtr[3]<<24); value64 += ((U64)srcPtr[3]<<24);
value64 += ((U64)srcPtr[4]<<32); value64 += ((U64)srcPtr[4]<<32);
value64 += ((U64)srcPtr[5]<<40); value64 += ((U64)srcPtr[5]<<40);
value64 += ((U64)srcPtr[6]<<48); value64 += ((U64)srcPtr[6]<<48);