1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Fix the comparison of the first byte when using gperf_case_strcmp.

This commit is contained in:
Bruno Haible
2003-04-12 00:41:03 +00:00
parent ab6f0966b7
commit 6bbdde4f5f
5 changed files with 359 additions and 70 deletions

View File

@@ -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;
}
}