From 1204ac400b5652ad0696b65c572df065cf378735 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Fri, 28 Mar 2025 11:52:20 +1300 Subject: [PATCH] [Compilers] Fix implicit typecast in simd hash function --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 7c59dd3..ea17971 100644 --- a/clay.h +++ b/clay.h @@ -1373,7 +1373,7 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) { length -= 16; } else { - for (int i = 0; i < length; i++) { + for (size_t i = 0; i < length; i++) { overflowBuffer[i] = data[i]; } msg = _mm_loadu_si128((const __m128i*)overflowBuffer);