diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-26 22:16:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-26 22:16:12 +0000 |
commit | 327d00cd459b659fa88ffe81500480c5e57fcfa1 (patch) | |
tree | 4e1f5176f0421202c23a5fa56cf0107a7b19f2e4 /clang/lib/Lex/PTHLexer.cpp | |
parent | 2483a6126f2aac46cc7ff67a1fc32b69dda16463 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |