summaryrefslogtreecommitdiff
path: root/tests/permut3.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/permut3.exp')
-rw-r--r--tests/permut3.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/permut3.exp b/tests/permut3.exp
index 967c084..2612088 100644
--- a/tests/permut3.exp
+++ b/tests/permut3.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];