treat chars as unsigned when hashing

This commit is contained in:
Dick Hollenbeck 2013-07-09 00:18:03 -05:00
parent 28d702f6a9
commit e135b7f669
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;