gmp-6.1.99-20171027/mpz/mul_i.h:105]: (style) Checking if unsigned variable 'small_mult' is less than zero.

David Binderman dcb314 at hotmail.com
Sun Oct 29 19:27:11 UTC 2017


Hello there,

I've found a really minor bug. The source code is

  SIZ(prod) = ((sign_product < 0) ^ (small_mult < 0)) ? -size : size;

but

      MULTIPLICAND_UNSIGNED long int small_mult

Suggest simplify the code.

Regards

David Binderman


     


More information about the gmp-discuss mailing list