Compare commits

..

1 Commits

Author SHA1 Message Date
bangbangsheshotmedown
a6c575c547
Merge ea3e29be5c into efad3deef8 2025-01-29 23:17:33 +01:00

2
clay.h
View File

@ -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 (uint32_t i = 0; i < maxLengthToHash; i++) {
for (int i = 0; i < maxLengthToHash; i++) {
hash += text->chars[i];
hash += (hash << 10);
hash ^= (hash >> 6);