Fix compiler warnings. (#2585)
authorAina Niemetz <aina.niemetz@gmail.com>
Thu, 4 Oct 2018 02:22:34 +0000 (19:22 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Oct 2018 02:22:34 +0000 (19:22 -0700)
src/theory/fp/fp_converter.cpp

index b73108b1ac1df1fbc65d6701807e7be6b93a7a25..dc6c001c96c6f0afd52cfcb8f3bce3ff0ac0b3f5 100644 (file)
@@ -253,7 +253,7 @@ symbolicRoundingMode::symbolicRoundingMode(const unsigned v)
     : nodeWrapper(NodeManager::currentNM()->mkConst(
           BitVector(SYMFPU_NUMBER_OF_ROUNDING_MODES, v)))
 {
-  PRECONDITION((v & v - 1) == 0 && v != 0);  // Exactly one bit set
+  PRECONDITION((v & (v - 1)) == 0 && v != 0);  // Exactly one bit set
   PRECONDITION(checkNodeType(*this));
 }
 #else