diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 20:07:10 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 20:07:10 +0000 |
| commit | fe602671f0f77ef40689a9f815ad27357797f59b (patch) | |
| tree | 443079f17eb9e24e8ec1465a85b5ac986f663f31 /string.c | |
| parent | 6824e7217d9f34cc21d3dd84c14f1d6c9d41352a (diff) | |
| download | ruby-fe602671f0f77ef40689a9f815ad27357797f59b.tar.gz ruby-fe602671f0f77ef40689a9f815ad27357797f59b.tar.xz ruby-fe602671f0f77ef40689a9f815ad27357797f59b.zip | |
* bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from
<ville.mattila at stonesoft.com>. [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
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -845,14 +845,14 @@ rb_str_hash(VALUE str) { register long len = RSTRING(str)->len; register char *p = RSTRING(str)->ptr; - register int hval = FNV1_32A_INIT; + register unsigned int hval = FNV1_32A_INIT; /* * FNV-1a hash each octet in the buffer */ while (len--) { /* xor the bottom with the current octet */ - hval ^= (int)*p++; + hval ^= (unsigned int)*p++; /* multiply by the 32 bit FNV magic prime mod 2^32 */ #if defined(FNV_GCC_OPTIMIZATION) |
