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