Try to solve coverity issue ID 112920

This commit is contained in:
twinaphex 2016-09-20 21:07:41 +02:00
parent 8095fa9ff8
commit d17de78fb3

6
deps/7zip/7zCrc.c vendored
View File

@ -63,12 +63,14 @@ void MY_FAST_CALL CrcGenerateTable(void)
#else
for (; i < 256 * CRC_NUM_TABLES; i++)
{
uint32_t r = g_CrcTable[i - 256];
uint32_t r = g_CrcTable[i - 256];
g_CrcTable[i] = g_CrcTable[r & 0xFF] ^ (r >> 8);
}
g_CrcUpdate = CrcUpdateT4;
#ifdef MY_CPU_X86_OR_AMD64
g_CrcUpdate = CrcUpdateT8;
#else
g_CrcUpdate = CrcUpdateT4;
#endif
#endif
}