mirror of
https://github.com/samsonjs/lake.git
synced 2026-04-27 14:57:43 +00:00
Fix lake_hash_has
This commit is contained in:
parent
b24d30af75
commit
f3d6b44eff
1 changed files with 1 additions and 1 deletions
|
|
@ -28,5 +28,5 @@ void *lake_hash_get(khash_t(LakeVal) * h, char *key)
|
||||||
bool lake_hash_has(khash_t(LakeVal) * h, char *key)
|
bool lake_hash_has(khash_t(LakeVal) * h, char *key)
|
||||||
{
|
{
|
||||||
khiter_t k = kh_get(LakeVal, h, key);
|
khiter_t k = kh_get(LakeVal, h, key);
|
||||||
return kh_exist(h, k);
|
return k != kh_end(h) && kh_exist(h, k);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue