Fix useless assertion in ^ code.
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 28 Mar 2011 18:08:50 +0000 (18:08 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 28 Mar 2011 18:08:50 +0000 (18:08 +0000)
From-SVN: r171619

gcc/go/gofrontend/expressions.cc

index 3a6005138cdb3e72acb5febd44ffc7046c233325..7fae4e012cbd24e4328ea82b61fd9022bbc7874a 100644 (file)
@@ -3814,7 +3814,7 @@ Unary_expression::eval_integer(Operator op, Type* utype, mpz_t uval, mpz_t val,
            ++obits;
          size_t ocount = ((obits + HOST_BITS_PER_WIDE_INT - 1)
                           / HOST_BITS_PER_WIDE_INT);
-         gcc_assert(ocount <= ocount);
+         gcc_assert(ocount <= count);
 
          for (size_t i = 0; i < ocount; ++i)
            phwi[i] = ~phwi[i];