From: Ian Lance Taylor Date: Mon, 28 Mar 2011 18:08:50 +0000 (+0000) Subject: Fix useless assertion in ^ code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12e0ac360186f9e8aeb308a07cc78a9f86d8ae04;p=gcc.git Fix useless assertion in ^ code. From-SVN: r171619 --- diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 3a6005138cd..7fae4e012cb 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -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];