treat chars as unsigned when hashing
This commit is contained in:
parent
28d702f6a9
commit
e135b7f669
|
@ -96,7 +96,7 @@ struct fnv_1a
|
|||
|
||||
for( ; *it; ++it )
|
||||
{
|
||||
hash ^= *it;
|
||||
hash ^= (unsigned char) *it;
|
||||
hash *= 16777619;
|
||||
}
|
||||
return hash;
|
||||
|
|
Loading…
Reference in New Issue