summaryrefslogtreecommitdiff
path: root/tests/permutc2.exp
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-04-12 00:41:03 +0000
committerBruno Haible <bruno@clisp.org>2003-04-12 00:41:03 +0000
commit6bbdde4f5f769875e153315b06a303e92fa008f0 (patch)
treeeb1aa01378d08af285cad67e5cea84b27eaff6db /tests/permutc2.exp
parentab6f0966b7a74d90cfe036e6b1c2a633e46668f3 (diff)
downloadgperf-6bbdde4f5f769875e153315b06a303e92fa008f0.tar.gz
Fix the comparison of the first byte when using gperf_case_strcmp.
Diffstat (limited to 'tests/permutc2.exp')
-rw-r--r--tests/permutc2.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/permutc2.exp b/tests/permutc2.exp
index 02632d5..30eb911 100644
--- a/tests/permutc2.exp
+++ b/tests/permutc2.exp
@@ -108,7 +108,7 @@ in_word_set (str, len)
{
register const char *s = wordlist[key];
- if (*str == *s && !gperf_case_strcmp (str + 1, s + 1))
+ if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strcmp (str, s))
return s;
}
}