Fix mac action

This commit is contained in:
Krzosa Karol
2024-01-08 06:48:18 +01:00
parent 6dbef92794
commit 7c7c596227
3 changed files with 3 additions and 2 deletions

View File

@@ -123,6 +123,7 @@ struct Table {
}
Entry *get_table_entry(uint64_t key) {
if (len == 0) return 0;
uint64_t hash = TABLE_HASH_BYTES(&key, sizeof(key));
if (hash == 0) hash += 1;
uint64_t index = TABLE__WRAP_AROUND_POWER_OF_2(hash, cap);