diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-05-24 23:26:50 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-05-24 23:26:50 +0200 |
commit | fe898c1a17b5647b2ddbf9050ddd223e1122cbd7 (patch) | |
tree | 070ec8c55c628d185543791446ca5e7122c5736f /mpz/kronsz.c | |
parent | ecc77b44b4d3053ff738c3f59922e153c0d4130b (diff) | |
download | gmp-fe898c1a17b5647b2ddbf9050ddd223e1122cbd7.tar.gz |
Don't test sizeof(mp_limb_t)>=sizeof(long) since this is a universal
requirement.
Don't put an assignment in an "if".
Diffstat (limited to 'mpz/kronsz.c')
-rw-r--r-- | mpz/kronsz.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mpz/kronsz.c b/mpz/kronsz.c index af98505e4..ec41943d1 100644 --- a/mpz/kronsz.c +++ b/mpz/kronsz.c @@ -41,10 +41,8 @@ mpz_kronecker_si_zi (a, b) int twos; int result_bit1; - /* long must fit in mp_limb_t */ - ASSERT (sizeof (mp_limb_t) >= sizeof (long)); - - if ((b_abs_size = ABSIZ (b)) == 0) + b_abs_size = ABSIZ (b); + if (b_abs_size == 0) return JACOBI_S0 (a); /* (a/0) */ b_ptr = PTR(b); |