From fe602671f0f77ef40689a9f815ad27357797f59b Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 3 Jul 2006 20:07:10 +0000 Subject: * bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from . [ruby-core:08120] * ChangeLog: remove some direct reference to mail addresses to prevent spams. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'st.c') diff --git a/st.c b/st.c index c1cb7b6c4..2e2305086 100644 --- a/st.c +++ b/st.c @@ -568,14 +568,14 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg) static int strhash(register const char *string) { - register int hval = FNV1_32A_INIT; + register unsigned int hval = FNV1_32A_INIT; /* * FNV-1a hash each octet in the buffer */ while (*string) { /* xor the bottom with the current octet */ - hval ^= (int)*string++; + hval ^= (unsigned int)*string++; /* multiply by the 32 bit FNV magic prime mod 2^32 */ hval *= FNV_32_PRIME; -- cgit