Improve map module: Fix implementation of map_has

This commit is contained in:
Thiago de Arruda 2014-05-19 10:51:56 -03:00
parent b87b1a3325
commit eb7513bbd2

View File

@ -45,7 +45,7 @@ void *map_get(Map *map, const char *key)
bool map_has(Map *map, const char *key)
{
return map_get(map, key) != NULL;
return kh_get(Map, map->table, key) != kh_end(map->table);
}
void *map_put(Map *map, const char *key, void *value)