r174353 - TextDiagnostic.cpp: Suppress a warning to use ptrdiff_t on i686-clang. [-Wsign-compare]

NAKAMURA Takumi geek4civic at gmail.com
Mon Feb 4 23:37:07 PST 2013


Author: chapuni
Date: Tue Feb  5 01:37:07 2013
New Revision: 174353

URL: http://llvm.org/viewvc/llvm-project?rev=174353&view=rev
Log:
TextDiagnostic.cpp: Suppress a warning to use ptrdiff_t on i686-clang. [-Wsign-compare]

Modified:
    cfe/trunk/lib/Frontend/TextDiagnostic.cpp

Modified: cfe/trunk/lib/Frontend/TextDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnostic.cpp?rev=174353&r1=174352&r2=174353&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnostic.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnostic.cpp Tue Feb  5 01:37:07 2013
@@ -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;
 





More information about the cfe-commits mailing list