projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411e674
)
TextDiagnostic.cpp: Suppress a warning to use ptrdiff_t on i686-clang. [-Wsign-compare]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 5 Feb 2013 07:37:07 +0000
(07:37 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 5 Feb 2013 07:37:07 +0000
(07:37 +0000)
llvm-svn: 174353
clang/lib/Frontend/TextDiagnostic.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Frontend/TextDiagnostic.cpp
b/clang/lib/Frontend/TextDiagnostic.cpp
index
4fdc254
..
28c2a39
100644
(file)
--- a/
clang/lib/Frontend/TextDiagnostic.cpp
+++ b/
clang/lib/Frontend/TextDiagnostic.cpp
@@
-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;