Fix guard against returning a zero hash.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19232 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-05-03 20:16:37 +00:00
parent 69d31f5704
commit 92b35443e6
3 changed files with 9 additions and 9 deletions

View file

@ -2193,14 +2193,11 @@ handle_printf_atsign (FILE *stream,
* The hash caching in our concrete string classes uses zero to denote
* an empty cache value, so we MUST NOT return a hash of zero.
*/
ret &= 0x0fffffff;
if (ret == 0)
{
ret = 0x0fffffff;
}
else
{
ret &= 0x0fffffff;
}
return ret;
}
else