Skip to content

Commit

Permalink
fix some printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Jun 27, 2023
1 parent e96df9c commit 9d3116a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gmpcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ static __inline__
void flint_mpz_pow_ui(mpz_ptr r, mpz_srcptr b, ulong exp)
{
if (exp >= (UWORD(1) << 32)) {
printf("Exception (flint_mpz_pow_ui). Power too large.\n");
flint_printf("Exception (flint_mpz_pow_ui). Power too large.\n");
flint_abort();
}

Expand All @@ -795,7 +795,7 @@ static __inline__
void flint_mpz_fac_ui(mpz_ptr r, ulong n)
{
if (n >= (UWORD(1) << 32)) {
printf("Exception (flint_mpz_fac_ui). Value n too large.\n");
flint_printf("Exception (flint_mpz_fac_ui). Value n too large.\n");
flint_abort();
}

Expand All @@ -806,12 +806,12 @@ static __inline__
void flint_mpz_bin_uiui(mpz_ptr r, ulong n, ulong k)
{
if (n >= (UWORD(1) << 32)) {
printf("Exception (flint_mpz_bin_uiui). Value n too large.\n");
flint_printf("Exception (flint_mpz_bin_uiui). Value n too large.\n");
flint_abort();
}

if (k >= (UWORD(1) << 32)) {
printf("Exception (flint_mpz_bin_uiui). Value k too large.\n");
flint_printf("Exception (flint_mpz_bin_uiui). Value k too large.\n");
flint_abort();
}

Expand All @@ -822,7 +822,7 @@ static __inline__
void flint_mpz_fib_ui(mpz_ptr r, ulong n)
{
if (n >= (UWORD(1) << 32)) {
printf("Exception (flint_mpz_fib_ui). Value n too large.\n");
flint_printf("Exception (flint_mpz_fib_ui). Value n too large.\n");
flint_abort();
}

Expand Down

0 comments on commit 9d3116a

Please sign in to comment.