summaryrefslogtreecommitdiff
path: root/tests/c-parse.exp
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2016-11-26 02:21:19 +0100
committerBruno Haible <bruno@clisp.org>2016-11-26 02:25:44 +0100
commitbbe4d732f3540e2917d35d5ae49ba42869eebb3b (patch)
tree202f2d0583ad5c0505d058e203b448677749d7e7 /tests/c-parse.exp
parentb3356507ce8a6e2636fcc22abb7965989f7f4d07 (diff)
downloadgperf-bbe4d732f3540e2917d35d5ae49ba42869eebb3b.tar.gz
Avoid 'warning: implicit conversion changes signedness' in output code.
Diffstat (limited to 'tests/c-parse.exp')
-rw-r--r--tests/c-parse.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/c-parse.exp b/tests/c-parse.exp
index 1efb61b..e526710 100644
--- a/tests/c-parse.exp
+++ b/tests/c-parse.exp
@@ -210,9 +210,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;