mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
4935a94f87
commit
7d6c23c297
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
|
- (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
|
- (void *) valueForKey:(const void *)aKey
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue