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 | 4adc71ae2cfc190f8d2cf58876e2a7893aa74ee0 (patch) | |
tree | 32bd5f2c5fe2e2928e9a8da94603340bc27073f9 /lib/Lex/PTHLexer.cpp | |
parent | 468edb509346e00a3228536b9f81064eb3baba19 (diff) |
Silence warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 54269c9ee1..d94ab70525 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/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; |