Commit e135b7f6 authored by Dick Hollenbeck's avatar Dick Hollenbeck

treat chars as unsigned when hashing

parent 28d702f6
......@@ -96,7 +96,7 @@ struct fnv_1a
for( ; *it; ++it )
{
hash ^= *it;
hash ^= (unsigned char) *it;
hash *= 16777619;
}
return hash;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment