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

llvm-svn: 174353
This commit is contained in:
NAKAMURA Takumi 2013-02-05 07:37:07 +00:00
parent 411e674557
commit 0120178909
1 changed files with 1 additions and 1 deletions

View 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;