From cbe05194dd99e9f85809ed8ec7d7fc24d3c87d2b Mon Sep 17 00:00:00 2001 From: yy Date: Wed, 17 Oct 2018 01:45:07 +0800 Subject: [PATCH] bug fixed --- XXHash/ConsoleSample/Crc32C.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XXHash/ConsoleSample/Crc32C.cs b/XXHash/ConsoleSample/Crc32C.cs index 9cf295c..765f582 100644 --- a/XXHash/ConsoleSample/Crc32C.cs +++ b/XXHash/ConsoleSample/Crc32C.cs @@ -93,7 +93,7 @@ protected override void HashCore(byte[] array, int ibStart, int cbSize) var curPtr = buf; while (cbSize-- > 0) { - _Hash = (_Hash >> 8) ^ _Crc32CTable[(_Hash ^ *curPtr++) & 0xFF]; + _Hash = (_Hash >> 8) ^ table[(_Hash ^ *curPtr++) & 0xFF]; } } }