diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-09 03:02:28 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-09 03:02:28 +0000 |
commit | 6d5552131a4637f9bbe8c93386648e9bbb2c30fe (patch) | |
tree | f27e09022fafc97f853b8c44107f9cdafb0d14f7 /tools/c-index-test/c-index-test.c | |
parent | 2c0af358072e5be81634a8767e501b962dbdd3ca (diff) |
c-index-test.c: Fix cygwin warning not to pass signed char to islower(c).
Cygwin's ctype.h says;
/* These macros are intentionally written in a manner that will trigger
a gcc -Wall warning if the user mistakenly passes a 'char' instead
of an int containing an 'unsigned char'.
(snip) */
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index d4e567d9e2..d424e2453a 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -990,7 +990,7 @@ void print_completion_result(CXCompletionResult *completion_result, int my_stricmp(const char *s1, const char *s2) { while (*s1 && *s2) { - int c1 = tolower(*s1), c2 = tolower(*s2); + int c1 = tolower((unsigned char)*s1), c2 = tolower((unsigned char)*s2); if (c1 < c2) return -1; else if (c1 > c2) |