From 3b365d9f8d1d4f54cacf1edc5326c9df59781378 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 28 Jul 2006 22:54:21 +1000 Subject: [PATCH] Use unsigned long instead of uint in string hashing algorithm. Portability fix, suggested by Netocrat. darcs-hash:20060728125421-ac50b-f3cfc12852739fdc1d3c43c46ed91a57e119964a.gz --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index dd829e87e..c06d601c5 100644 --- a/util.c +++ b/util.c @@ -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; }