Fix sign comparison warning

This commit is contained in:
Boreal 2025-05-27 19:11:47 -07:00 committed by GitHub
parent e80736892d
commit ce0e9b3808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
clay.h
View file

@ -1483,7 +1483,7 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
uint64_t Clay__HashData(const uint8_t* data, size_t length) {
uint64_t hash = 0;
for (int32_t i = 0; i < length; i++) {
for (size_t i = 0; i < length; i++) {
hash += data[i];
hash += (hash << 10);
hash ^= (hash >> 6);