fix sign cast warning

This commit is contained in:
blueloveTH 2025-06-29 22:18:36 +08:00
parent eb52965aef
commit 78caa5602a

View File

@ -228,7 +228,7 @@ static void Dict__compact_entries(Dict* self) {
}
self->entries.length = n;
// update indices
for(int idx = 0; idx < self->capacity; idx++) {
for(uint32_t idx = 0; idx < self->capacity; idx++) {
uint32_t idx2 = Dict__get_index(self, idx);
if(idx2 == self->null_index_value) continue;
Dict__set_index(self, idx, mappings[idx2]);