summaryrefslogtreecommitdiff
path: root/tests/permutc2.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/permutc2.exp')
-rw-r--r--tests/permutc2.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/permutc2.exp b/tests/permutc2.exp
index 4a29918..157b049 100644
--- a/tests/permutc2.exp
+++ b/tests/permutc2.exp
@@ -148,9 +148,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];