Compare commits

..

1 Commits

Author SHA1 Message Date
Harrison Lambeth
ae846b0a87
Merge c68a3ee136 into efad3deef8 2025-01-29 14:21:22 -07:00

2
clay.h
View File

@ -995,7 +995,7 @@ uint32_t Clay__HashTextWithConfig(Clay_String *text, Clay_TextElementConfig *con
if (config->hashStringContents) {
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 += (hash << 10);
hash ^= (hash >> 6);