Fix HashMap_insert

This commit is contained in:
Stephen Seo 2019-02-08 12:55:20 +09:00
parent 8af6ff500d
commit de0a877c70

View file

@ -88,7 +88,7 @@ void* UDPC_HashMap_insert(UDPC_HashMap *hm, uint32_t key, void *data)
memcpy(temp, &key, sizeof(uint32_t));
memcpy(temp + sizeof(uint32_t), data, hm->unitSize);
if(UDPC_Deque_get_available(hm->buckets[hash]) == 0)
if(UDPC_Deque_get_available(hm->buckets[hash]) != 0)
{
if(UDPC_Deque_push_back(hm->overflow, temp, sizeof(uint32_t) + hm->unitSize) == 0)
{