From 40ae6d88946d1fa43f3d327c71bb0e6037c067a3 Mon Sep 17 00:00:00 2001 From: Harrison Lambeth Date: Wed, 29 Jan 2025 19:46:37 -0700 Subject: [PATCH] Fix int conversion errors in msvc (#242) --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index e997dd2..cb7f91a 100644 --- a/clay.h +++ b/clay.h @@ -990,7 +990,7 @@ uint32_t Clay__HashTextWithConfig(Clay_String *text, Clay_TextElementConfig *con if (config->hashStringContents) { uint32_t maxLengthToHash = CLAY__MIN(text->length, 256); - for (int i = 0; i < maxLengthToHash; i++) { + for (uint32_t i = 0; i < maxLengthToHash; i++) { hash += text->chars[i]; hash += (hash << 10); hash ^= (hash >> 6);