summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-09 03:02:28 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-09 03:02:28 +0000
commitd3cc220d97e051d3a12779c3ff6d080ccb1d221f (patch)
tree4883843a843610b424e77a1dad7db4cb7981fc32 /clang/tools/c-index-test/c-index-test.c
parent5100c00fa68fc8fd693d397da5ecc9a8d7610770 (diff)
downloadbcm5719-llvm-d3cc220d97e051d3a12779c3ff6d080ccb1d221f.tar.gz
bcm5719-llvm-d3cc220d97e051d3a12779c3ff6d080ccb1d221f.zip
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) */ llvm-svn: 127308
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index d4e567d9e26..d424e2453a8 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/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)
OpenPOWER on IntegriCloud