mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +00:00
[Compilers] Fix implicit typecast in simd hash function
This commit is contained in:
parent
6a7ce77024
commit
1204ac400b
2
clay.h
2
clay.h
|
@ -1373,7 +1373,7 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
|
||||||
length -= 16;
|
length -= 16;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (int i = 0; i < length; i++) {
|
for (size_t i = 0; i < length; i++) {
|
||||||
overflowBuffer[i] = data[i];
|
overflowBuffer[i] = data[i];
|
||||||
}
|
}
|
||||||
msg = _mm_loadu_si128((const __m128i*)overflowBuffer);
|
msg = _mm_loadu_si128((const __m128i*)overflowBuffer);
|
||||||
|
|
Loading…
Reference in a new issue