diff options
Diffstat (limited to 'tests/cplusplus.exp')
-rw-r--r-- | tests/cplusplus.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cplusplus.exp b/tests/cplusplus.exp index c28cf61..69c2fd0 100644 --- a/tests/cplusplus.exp +++ b/tests/cplusplus.exp @@ -255,9 +255,9 @@ is_reserved_word (str, 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; |