diff options
Diffstat (limited to 'tests/charsets.exp')
-rw-r--r-- | tests/charsets.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/charsets.exp b/tests/charsets.exp index 560af1b..7e2b988 100644 --- a/tests/charsets.exp +++ b/tests/charsets.exp @@ -1812,9 +1812,9 @@ in_word_set (register const char *str, register unsigned int len) { if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash (str, len); + register unsigned int key = hash (str, len); - if (key <= MAX_HASH_VALUE && key >= 0) + if (key <= MAX_HASH_VALUE) { register const char *s = wordlist[key].name; |