mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-18 20:28:01 +00:00
Fix int conversion errors in msvc
This commit is contained in:
parent
efad3deef8
commit
1f68850c52
2
clay.h
2
clay.h
@ -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 (int i = 0; i < maxLengthToHash; i++) {
|
for (uint32_t 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user