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