]> granicus.if.org Git - clang/commitdiff
Fix order of evaluation.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 27 Nov 2008 07:28:14 +0000 (07:28 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 27 Nov 2008 07:28:14 +0000 (07:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60160 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Diagnostic.cpp

index 8547ef49a055b88f353d7232623d1a757e26249f..88532a7e732c6993f75ba89e8883c54f7fec378b 100644 (file)
@@ -354,7 +354,7 @@ static bool EvalPluralExpr(unsigned ValNo, const char *Start, const char *End)
       if (TestPluralRange(ValMod, Start, End))
         return true;
     } else {
-      assert(C == '[' || (C >= '0' && C <= '9') &&
+      assert((C == '[' || (C >= '0' && C <= '9')) &&
              "Bad plural expression syntax: unexpected character");
       // Range expression
       if (TestPluralRange(ValNo, Start, End))