summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2021-12-12 14:24:10 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2021-12-12 14:24:10 +0100
commit650368f11361f45af429cac9690c9d85885d765c (patch)
tree06411f3152ec58173e1bd8fb0d6327f68ad3f78f /gmp-h.in
parent5ea34d9f6fd6ebe37653ea64dac820e05cb160d5 (diff)
downloadgmp-650368f11361f45af429cac9690c9d85885d765c.tar.gz
Handle overflow in mpz_type through errno.
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in6
1 files changed, 4 insertions, 2 deletions
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 */