[Gmp-commit] /var/hg/gmp: Add parentheses so the printf argument has type mat...
mercurial at gmplib.org
mercurial at gmplib.org
Thu Jan 2 12:49:24 UTC 2014
details: /var/hg/gmp/rev/2fd4147f2e82
changeset: 16149:2fd4147f2e82
user: Marc Glisse <marc.glisse at inria.fr>
date: Thu Jan 02 13:49:22 2014 +0100
description:
Add parentheses so the printf argument has type matching "%d".
diffstat:
ChangeLog | 2 ++
tests/mpn/t-hgcd_appr.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 523511a9e8ee -r 2fd4147f2e82 ChangeLog
--- a/ChangeLog Thu Jan 02 13:25:31 2014 +0100
+++ b/ChangeLog Thu Jan 02 13:49:22 2014 +0100
@@ -8,6 +8,8 @@
* tests/t-constants.c: Adapt printf strings.
* tests/t-gmpmax.c: Likewise.
+ * tests/mpn/t-hgcd_appr.c (hgcd_appr_valid_p): Add parentheses.
+
2014-01-01 Torbjorn Granlund <tege at gmplib.org>
* doc/gmp.texi (Low-level Functions for cryptography): Update interface
diff -r 523511a9e8ee -r 2fd4147f2e82 tests/mpn/t-hgcd_appr.c
--- a/tests/mpn/t-hgcd_appr.c Thu Jan 02 13:25:31 2014 +0100
+++ b/tests/mpn/t-hgcd_appr.c Thu Jan 02 13:49:22 2014 +0100
@@ -512,7 +512,7 @@
fprintf (stderr, "n = %u: sbits = %u: ref #(r0-r1): %u, appr #(r0-r1): %u excess: %d, margin: %u\n",
(unsigned) n, (unsigned) s*GMP_NUMB_BITS,
(unsigned) dbits, (unsigned) abits,
- (int) abits - s * GMP_NUMB_BITS, (unsigned) margin);
+ (int) (abits - s * GMP_NUMB_BITS), (unsigned) margin);
if (abits > s*GMP_NUMB_BITS + margin)
{
More information about the gmp-commit
mailing list