Use unsigned long instead of uint in string hashing algorithm. Portability fix, suggested by Netocrat.

darcs-hash:20060728125421-ac50b-f3cfc12852739fdc1d3c43c46ed91a57e119964a.gz
This commit is contained in:
axel
2006-07-28 22:54:21 +10:00
parent 3835000e9d
commit 3b365d9f8d

4
util.c
View File

@@ -480,9 +480,9 @@ int hash_str_cmp( void *a, void *b )
/**
Helper function for hash_wcs_func
*/
static uint rotl5( uint in )
static unsigned long rotl5( unsigned long in )
{
return (in<<5|in>>27);
return ((in<<5|in>>27))&0xffffffff;
}