summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-02-12 19:20:48 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-02-12 19:20:48 +0000
commit396088cdb5e90f8be1d38e6119a620a6e536fff1 (patch)
tree85c2d5df8ca20fa71520d23bc79623c80ced9231 /clang/lib
parente348d2724adffb59f6c2c8e4f9382138a83d7d40 (diff)
downloadbcm5719-llvm-396088cdb5e90f8be1d38e6119a620a6e536fff1.tar.gz
bcm5719-llvm-396088cdb5e90f8be1d38e6119a620a6e536fff1.zip
Fixing the MSVC compiler warning a different way; removed use of static_cast and instead used a signed integer parameter.
llvm-svn: 174996
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Format/TokenAnnotator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 1e595610762..5794f5ab5d4 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -705,7 +705,7 @@ public:
ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {}
/// \brief Parse expressions with the given operatore precedence.
- void parse(unsigned Precedence = prec::Unknown) {
+ void parse(signed Precedence = prec::Unknown) {
if (Precedence > prec::PointerToMember || Current == NULL)
return;
@@ -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) < static_cast<prec::Level>(Precedence))) {
+ getPrecedence(*Current) < Precedence)) {
if (OperatorFound) {
++Start->FakeLParens;
if (Current != NULL)
OpenPOWER on IntegriCloud