Fix for Issue #23

Fixes QuickXorHash issue
This commit is contained in:
Robert Foster 2018-07-10 23:55:58 +10:00 committed by GitHub
parent c0d2874ace
commit fa80cde22e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,9 +32,9 @@ struct QuickXor
} else {
int index1 = vectorArrayIndex;
int index2 = isLastCell ? 0 : (vectorArrayIndex + 1);
byte low = cast(byte) (bitsInVectorCell - vectorOffset);
ubyte low = cast(ubyte) (bitsInVectorCell - vectorOffset);
byte xoredByte = 0;
ubyte xoredByte = 0;
for (size_t j = i; j < array.length; j += widthInBits) {
xoredByte ^= array[j];
}