[Gmp-commit] /var/hg/gmp: mini-gmp/mini-mpq.c: Remove asserts for values allo...
mercurial at gmplib.org
mercurial at gmplib.org
Sat Apr 28 16:39:38 UTC 2018
details: /var/hg/gmp/rev/cf2ddd50fdea
changeset: 17612:cf2ddd50fdea
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Apr 28 18:39:26 2018 +0200
description:
mini-gmp/mini-mpq.c: Remove asserts for values allowed by full GMP.
diffstat:
mini-gmp/mini-mpq.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 2730f576a1b1 -r cf2ddd50fdea mini-gmp/mini-mpq.c
--- a/mini-gmp/mini-mpq.c Sat Apr 28 10:14:02 2018 +0200
+++ b/mini-gmp/mini-mpq.c Sat Apr 28 18:39:26 2018 +0200
@@ -158,8 +158,6 @@
void
mpq_set_ui (mpq_t r, unsigned long n, unsigned long d)
{
- assert (d != 0);
-
mpz_set_ui (mpq_numref (r), n);
mpz_set_ui (mpq_denref (r), d);
}
@@ -167,8 +165,6 @@
void
mpq_set_si (mpq_t r, signed long n, unsigned long d)
{
- assert (d != 0);
-
mpz_set_si (mpq_numref (r), n);
mpz_set_ui (mpq_denref (r), d);
}
@@ -189,7 +185,6 @@
void
mpq_set_den (mpq_t r, const mpz_t z)
{
- assert (z->_mp_size != 0);
mpz_set (mpq_denref (r), z);
}
More information about the gmp-commit
mailing list