[Gmp-commit] /var/hg/gmp: Use ABS_CAST.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Jun 9 01:48:22 CEST 2013
details: /var/hg/gmp/rev/ac164620fbce
changeset: 15827:ac164620fbce
user: Marc Glisse <marc.glisse at inria.fr>
date: Sun Jun 09 01:48:20 2013 +0200
description:
Use ABS_CAST.
diffstat:
ChangeLog | 1 +
mpz/kronzs.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 3883c81ed605 -r ac164620fbce ChangeLog
--- a/ChangeLog Sun Jun 09 01:16:45 2013 +0200
+++ b/ChangeLog Sun Jun 09 01:48:20 2013 +0200
@@ -1,6 +1,7 @@
2013-06-09 Marc Glisse <marc.glisse at inria.fr>
* mpn/generic/get_d.c (mpn_get_d): Avoid signed overflow.
+ * mpz/kronzs.c (mpz_kronecker_si): Use ABS_CAST.
2013-05-31 Torbjorn Granlund <tege at gmplib.org>
diff -r 3883c81ed605 -r ac164620fbce mpz/kronzs.c
--- a/mpz/kronzs.c Sun Jun 09 01:16:45 2013 +0200
+++ b/mpz/kronzs.c Sun Jun 09 01:48:20 2013 +0200
@@ -50,7 +50,7 @@
#endif
result_bit1 = JACOBI_BSGN_SS_BIT1 (a_size, b);
- b_limb = (unsigned long) ABS (b);
+ b_limb = ABS_CAST (unsigned long, b);
a_ptr = PTR(a);
if ((b_limb & 1) == 0)
More information about the gmp-commit
mailing list