Skip to content

Commit

Permalink
Similarly, krk_tableAdjustCapacity can use identity
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Feb 27, 2024
1 parent 1ebff2c commit 53c08ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 53c08ad

Please sign in to comment.