diff options
Diffstat (limited to 'tests/permut2.exp')
-rw-r--r-- | tests/permut2.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/permut2.exp b/tests/permut2.exp index 7db6857..5d29a91 100644 --- a/tests/permut2.exp +++ b/tests/permut2.exp @@ -99,9 +99,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]; |