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:
f606670
)
Removing a signed/unsigned mismatch warning triggered in MSVC 11.
author
Aaron Ballman
<aaron@aaronballman.com>
Tue, 12 Feb 2013 18:39:15 +0000
(18:39 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Tue, 12 Feb 2013 18:39:15 +0000
(18:39 +0000)
llvm-svn: 174986
clang/lib/Format/TokenAnnotator.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/TokenAnnotator.cpp
b/clang/lib/Format/TokenAnnotator.cpp
index
80089de
..
1e59561
100644
(file)
--- a/
clang/lib/Format/TokenAnnotator.cpp
+++ b/
clang/lib/Format/TokenAnnotator.cpp
@@
-729,7
+729,7
@@
public:
// found, insert fake parenthesis and return.
if (Current == NULL || Current->is(tok::semi) || closesScope(*Current) ||
((Current->Type == TT_BinaryOperator || Current->is(tok::comma)) &&
- getPrecedence(*Current) <
Precedence
)) {
+ getPrecedence(*Current) <
static_cast<prec::Level>(Precedence)
)) {
if (OperatorFound) {
++Start->FakeLParens;
if (Current != NULL)