]> granicus.if.org Git - clang/commitdiff
Silence warning.
authorTed Kremenek <kremenek@apple.com>
Mon, 26 Jan 2009 22:16:12 +0000 (22:16 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 26 Jan 2009 22:16:12 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index 54269c9ee15b3587d3e8a181da363c35c326e891..d94ab7052564791ea37a5e5a0ffb7285e1934b4e 100644 (file)
@@ -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;