Fixup cast

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26672 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-06-16 16:01:06 +00:00
parent f75a9210b9
commit 76578244f7

View file

@ -563,8 +563,8 @@ GSIMapNodeForKey(GSIMapTable map, GSIMapKey key)
#if (GSI_MAP_KTYPES & GSUNION_INT)
/*
* Specialized lookup for the case where keys are known to be simple integer
* or pointer values that are their own hash values and con be compared with
* a test for integer equality.
* or pointer values that are their own hash values (when converted to unsigned
* integers) and can be compared with a test for integer equality.
*/
static INLINE GSIMapNode
GSIMapNodeForSimpleKey(GSIMapTable map, GSIMapKey key)
@ -576,7 +576,7 @@ GSIMapNodeForSimpleKey(GSIMapTable map, GSIMapKey key)
{
return 0;
}
bucket = map->buckets + key.addr % map->bucketCount;
bucket = map->buckets + ((unsigned)key.addr) % map->bucketCount;
node = bucket->firstNode;
while ((node != 0) && node->key.addr != key.addr)
{