Compare commits

..

1 Commits

Author SHA1 Message Date
Harrison Lambeth
cc5f624c4c
Merge df79cc9e53 into efad3deef8 2025-01-29 22:20:18 +01:00

2
clay.h
View File

@ -990,7 +990,7 @@ uint32_t Clay__HashTextWithConfig(Clay_String *text, Clay_TextElementConfig *con
if (config->hashStringContents) { if (config->hashStringContents) {
uint32_t maxLengthToHash = CLAY__MIN(text->length, 256); uint32_t maxLengthToHash = CLAY__MIN(text->length, 256);
for (uint32_t i = 0; i < maxLengthToHash; i++) { for (int i = 0; i < maxLengthToHash; i++) {
hash += text->chars[i]; hash += text->chars[i];
hash += (hash << 10); hash += (hash << 10);
hash ^= (hash >> 6); hash ^= (hash >> 6);