diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2021-12-12 14:24:10 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2021-12-12 14:24:10 +0100 |
commit | 650368f11361f45af429cac9690c9d85885d765c (patch) | |
tree | 06411f3152ec58173e1bd8fb0d6327f68ad3f78f /gmp-h.in | |
parent | 5ea34d9f6fd6ebe37653ea64dac820e05cb160d5 (diff) | |
download | gmp-650368f11361f45af429cac9690c9d85885d765c.tar.gz |
Handle overflow in mpz_type through errno.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |