Allow duplicate keys in HashMap
This commit is contained in:
parent
6801cc9744
commit
c335b280c9
1 changed files with 0 additions and 2 deletions
|
@ -90,8 +90,6 @@ void* UDPC_HashMap_insert(UDPC_HashMap *hm, uint32_t key, void *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UDPC_HashMap_remove(hm, key);
|
|
||||||
|
|
||||||
uint32_t hash = UDPC_HASH32(key) % hm->capacity;
|
uint32_t hash = UDPC_HASH32(key) % hm->capacity;
|
||||||
|
|
||||||
char *temp = malloc(sizeof(uint32_t) + hm->unitSize);
|
char *temp = malloc(sizeof(uint32_t) + hm->unitSize);
|
||||||
|
|
Loading…
Reference in a new issue