lz4: fix shadow issue

This commit is contained in:
Boris Faure 2014-06-29 23:07:40 +02:00
parent e582990deb
commit 4134aa27be
1 changed files with 3 additions and 3 deletions

View File

@ -983,9 +983,9 @@ FORCE_INLINE int LZ4_decompress_generic(
copySize = length+MINMATCH - copySize;
if (copySize > (size_t)((char*)op-dest)) /* overlap */
{
BYTE* const cpy = op + copySize;
const BYTE* ref = (BYTE*)dest;
while (op < cpy) *op++ = *ref++;
BYTE* const cpy2 = op + copySize;
const BYTE* ref2 = (BYTE*)dest;
while (op < cpy2) *op++ = *ref2++;
}
else
{