summaryrefslogtreecommitdiff
path: root/errno.c
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 /errno.c
parent5ea34d9f6fd6ebe37653ea64dac820e05cb160d5 (diff)
downloadgmp-650368f11361f45af429cac9690c9d85885d765c.tar.gz
Handle overflow in mpz_type through errno.
Diffstat (limited to 'errno.c')
-rw-r--r--errno.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/errno.c b/errno.c
index b4be55501..d71c146b3 100644
--- a/errno.c
+++ b/errno.c
@@ -4,7 +4,7 @@
ONLY. THEY'RE ALMOST CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR
DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEASES.
-Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
+Copyright 2000, 2001, 2003, 2021 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -70,3 +70,8 @@ __gmp_divide_by_zero (void)
{
__gmp_exception (GMP_ERROR_DIVISION_BY_ZERO);
}
+void
+__gmp_overflow_in_mpz (void)
+{
+ __gmp_exception (GMP_ERROR_MPZ_OVERFLOW);
+}