TextDiagnostic.cpp: Suppress a warning to use ptrdiff_t on i686-clang. [-Wsign-compare]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 5 Feb 2013 07:37:07 +0000 (07:37 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 5 Feb 2013 07:37:07 +0000 (07:37 +0000)
llvm-svn: 174353

clang/lib/Frontend/TextDiagnostic.cpp

index 4fdc254..28c2a39 100644 (file)
@@ -1098,7 +1098,7 @@ void TextDiagnostic::emitSnippetAndCaret(
   unsigned ColNo = SM.getColumnNumber(FID, FileOffset);
   
   // Arbitrarily stop showing snippets when the line is too long.
-  static const unsigned MaxLineLengthToPrint = 4096;
+  static const ptrdiff_t MaxLineLengthToPrint = 4096;
   if (ColNo > MaxLineLengthToPrint)
     return;