diff options
Diffstat (limited to 'mpz/init2.c')
-rw-r--r-- | mpz/init2.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mpz/init2.c b/mpz/init2.c index fcbaa66db..3133f60ab 100644 --- a/mpz/init2.c +++ b/mpz/init2.c @@ -1,6 +1,6 @@ /* mpz_init2 -- initialize mpz, with requested size in bits. -Copyright 2001, 2002, 2008 Free Software Foundation, Inc. +Copyright 2001, 2002, 2008, 2021 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -43,10 +43,7 @@ mpz_init2 (mpz_ptr x, mp_bitcnt_t bits) if (sizeof (unsigned long) > sizeof (int)) /* param vs _mp_size field */ { if (UNLIKELY (new_alloc > INT_MAX)) - { - fprintf (stderr, "gmp: overflow in mpz type\n"); - abort (); - } + MPZ_OVERFLOW; } PTR(x) = __GMP_ALLOCATE_FUNC_LIMBS (new_alloc); |