Skip to content
Snippets Groups Projects
Commit 998ec60d authored by Niels Möller's avatar Niels Möller
Browse files

(main): Avoid using gmp_fprintf, to stay compatible with gmp-3.1.

Rev: nettle/examples/next-prime.c:1.3
parent 95f62944
No related branches found
No related tags found
No related merge requests found
......@@ -145,9 +145,11 @@ main(int argc, char **argv)
mpz_init(d);
mpz_sub(d, p, n);
gmp_fprintf(stderr, "bit size: %lu, diff: %Zd, total time: %.3g s\n",
mpz_sizeinbase(p, 2), d,
(double)(end - start) / CLOCKS_PER_SEC);
/* Avoid using gmp_fprintf, to stay compatible with gmp-3.1. */
fprintf(stderr, "bit size: %lu, diff: ", (unsigned long) mpz_sizeinbase(p, 2));
mpz_out_str(stderr, 10, d);
fprintf(stderr, ", total time: %.3g s\n",
(double)(end - start) / CLOCKS_PER_SEC);
}
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment