From e135b7f6694a7f9322f7de11659ab21f08514e4a Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Tue, 9 Jul 2013 00:18:03 -0500 Subject: [PATCH] treat chars as unsigned when hashing --- include/hashtables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hashtables.h b/include/hashtables.h index a0fbd778b7..2523baa057 100644 --- a/include/hashtables.h +++ b/include/hashtables.h @@ -96,7 +96,7 @@ struct fnv_1a for( ; *it; ++it ) { - hash ^= *it; + hash ^= (unsigned char) *it; hash *= 16777619; } return hash;