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