From 650368f11361f45af429cac9690c9d85885d765c Mon Sep 17 00:00:00 2001 From: Marco Bodrato Date: Sun, 12 Dec 2021 14:24:10 +0100 Subject: Handle overflow in mpz_type through errno. --- gmp-h.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gmp-h.in') diff --git a/gmp-h.in b/gmp-h.in index e82a013fe..6828ebce2 100644 --- a/gmp-h.in +++ b/gmp-h.in @@ -1,6 +1,7 @@ /* Definitions for GNU multiple precision functions. -*- mode: c -*- -Copyright 1991, 1993-1997, 1999-2016, 2020 Free Software Foundation, Inc. +Copyright 1991, 1993-1997, 1999-2016, 2020, 2021 Free Software +Foundation, Inc. This file is part of the GNU MP Library. @@ -2325,7 +2326,8 @@ enum GMP_ERROR_UNSUPPORTED_ARGUMENT = 1, GMP_ERROR_DIVISION_BY_ZERO = 2, GMP_ERROR_SQRT_OF_NEGATIVE = 4, - GMP_ERROR_INVALID_ARGUMENT = 8 + GMP_ERROR_INVALID_ARGUMENT = 8, + GMP_ERROR_MPZ_OVERFLOW = 16 }; /* Define CC and CFLAGS which were used to build this version of GMP */ -- cgit v1.2.1