@@ -125,7 +125,8 @@ uint32_t crc32Fast(char* data, uint16_t size, uint32_t* lookupTable)
for (i = 0; i < size; i++)
{
- crcTemp = lookupTable[data[i] ^ (crcTemp & 0xff)] ^ (crcTemp >> 8);
+ uint8_t index = data[i] ^ (crcTemp & 0xff);
+ crcTemp = lookupTable[index] ^ (crcTemp >> 8);
}
return ~crcTemp;