From 5d3bd93101f24ff5149fcc0bf494f22dc7a18da2 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Thu, 16 Jun 2016 02:30:33 +0000 Subject: [PATCH] [Lex] Try to fix a 'comparison is always false' warning. NFC. llvm-svn: 272867 --- clang/lib/Lex/PPDirectives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 7c7c8f2a186d..77f118fd3ccb 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -162,7 +162,7 @@ static bool warnByDefaultOnWrongCase(StringRef Include) { SmallString<32> LowerInclude{Include}; for (char &Ch : LowerInclude) { // In the ASCII range? - if (Ch < 0 || Ch > 0x7f) + if (static_cast(Ch) > 0x7f) return false; // Can't be a standard header // ASCII lowercase: if (Ch >= 'A' && Ch <= 'Z')