Similarly, krk_tableAdjustCapacity can use identity

This commit is contained in:
K. Lange 2024-02-27 19:26:51 +09:00
parent 1ebff2c5e5
commit 53c08adec9

View File

@ -126,7 +126,7 @@ void krk_tableAdjustCapacity(KrkTable * table, size_t capacity) {
for (size_t i = 0; i < table->count; ++i) {
while (IS_KWARGS(e->key)) e++;
memcpy(&nentries[i], e, sizeof(KrkTableEntry));
ssize_t indexkey = krk_tableIndexKey(nentries,nindexes,capacity, e->key);
ssize_t indexkey = krk_tableIndexKeyExact(nentries,nindexes,capacity, e->key);
nindexes[indexkey] = i;
e++;
}