]> granicus.if.org Git - clang/commitdiff
ok now, let's fix that MSVC warning for real.
authorFrancois Pichet <pichet2000@gmail.com>
Mon, 6 Jun 2011 02:57:59 +0000 (02:57 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Mon, 6 Jun 2011 02:57:59 +0000 (02:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132675 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h

index 87379d73ebbe7bfcb1e81110a8a9e2907760a2ed..ee2bc39ea4910465327065af357db6d19a7cb1d6 100644 (file)
@@ -630,7 +630,7 @@ public:
 
     bool hasConstParamMatch() const { return Pair.getInt() & 0x2; }
     void setConstParamMatch(bool B) {
-      Pair.setInt(unsigned(B) << 1 | hasSuccess());
+      Pair.setInt(B << 1 | unsigned(hasSuccess()));
     }
   };