treat chars as unsigned when hashing

This commit is contained in:
Dick Hollenbeck 2013-07-09 00:18:03 -05:00
parent a6c5f46f2d
commit 17923c0d9e
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ struct fnv_1a
for( ; *it; ++it )
{
hash ^= *it;
hash ^= (unsigned char) *it;
hash *= 16777619;
}
return hash;