mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
([HashTable -isKey]): Updated isKey to use the new hash_value_for_key
function in the runtime, and thereby allow for nulls in HashTables. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1775 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e37cc84076
commit
202df44f7c
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ compare_long_ints (const void *k1, const void *k2)
|
|||
|
||||
- (BOOL) isKey:(const void *)aKey
|
||||
{
|
||||
return (hash_value_for_key(_buckets, aKey)) ? YES : NO;
|
||||
return hash_is_key_in_hash(_buckets, aKey);
|
||||
}
|
||||
|
||||
- (void *) valueForKey:(const void *)aKey
|
||||
|
|
Loading…
Reference in a new issue