summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-26 22:16:12 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-26 22:16:12 +0000
commit327d00cd459b659fa88ffe81500480c5e57fcfa1 (patch)
tree4e1f5176f0421202c23a5fa56cf0107a7b19f2e4 /clang/lib/Lex/PTHLexer.cpp
parent2483a6126f2aac46cc7ff67a1fc32b69dda16463 (diff)
downloadbcm5719-llvm-327d00cd459b659fa88ffe81500480c5e57fcfa1.tar.gz
bcm5719-llvm-327d00cd459b659fa88ffe81500480c5e57fcfa1.zip
Silence warning.
llvm-svn: 63054
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r--clang/lib/Lex/PTHLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index 54269c9ee15..d94ab705256 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -522,7 +522,7 @@ PTHManager* PTHManager::Create(const std::string& file) {
const unsigned char* BufEnd = (unsigned char*)File->getBufferEnd();
// Check the prologue of the file.
- if ((BufEnd - BufBeg) < (unsigned) (sizeof("cfe-pth") + 3 + 4) ||
+ if ((BufEnd - BufBeg) < (signed) (sizeof("cfe-pth") + 3 + 4) ||
memcmp(BufBeg, "cfe-pth", sizeof("cfe-pth") - 1) != 0)
return 0;
OpenPOWER on IntegriCloud