Forgot to commit this hash fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7711 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-06 05:33:50 +00:00
parent 05fbf4a225
commit 9882ff6686

View file

@ -1385,11 +1385,13 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
* an empty cache value, so we MUST NOT return a hash of zero.
*/
if (ret == 0)
ret = 0xffffffff;
ret = 0x0fffffff;
else
ret &= 0x0fffffff;
}
else
{
ret = 0xfffffffe; /* Hash for an empty string. */
ret = 0x0ffffffe; /* Hash for an empty string. */
}
return ret;
}