mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-08 03:41:52 +08:00
fix a bug in __mg_map_insert
This commit is contained in:
@@ -246,7 +246,7 @@ int __mg_map_insert (map_t* map, const void* key, const void* val)
|
||||
if (map->comp_key)
|
||||
ret = map->comp_key (key, (*pentry)->key);
|
||||
else
|
||||
ret = (int)((intptr_t)key - (intptr_t)entry->key);
|
||||
ret = (int)((intptr_t)key - (intptr_t)(*pentry)->key);
|
||||
|
||||
parent = *pentry;
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user