Removed another loop for known array size in CRC32 method

This commit is contained in:
Travis Nickles 2018-03-05 05:52:59 -06:00
parent a8b6213c0c
commit f5f6002cdc

View File

@ -361,10 +361,11 @@ namespace DS4Windows
*/
while (--bufsize >= 0)
{
//while (--bufsize >= 0)
//{
crc = (crc >> 8) ^ defaultTable[(crc & 0xFF) ^ buffer[i++]];// i++;
}
crc = (crc >> 8) ^ defaultTable[(crc & 0xFF) ^ buffer[i++]];// i++;
//}
return crc;
}