OSDN Git Service

Fix useless assertion in ^ code.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Mar 2011 18:08:50 +0000 (18:08 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Mar 2011 18:08:50 +0000 (18:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171619 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/expressions.cc

index 3a60051..7fae4e0 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];