From e746f06265981fd17bc656ca59e0ed82f6cea84d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 17:19:53 +0200 Subject: Add option UNSAFE which disables all internal error checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zdivmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zdivmod.c') diff --git a/src/zdivmod.c b/src/zdivmod.c index d907450..9cf3611 100644 --- a/src/zdivmod.c +++ b/src/zdivmod.c @@ -72,9 +72,9 @@ zdivmod(z_t a, z_t b, z_t c, z_t d) sign = zsignum(c) * zsignum(d); if (unlikely(!sign)) { - if (unlikely(!zzero(c))) { + if (check(unlikely(!zzero(c)))) { libzahl_failure(-ZERROR_DIV_0); - } else if (unlikely(zzero(d))) { + } else if (check(unlikely(zzero(d)))) { libzahl_failure(-ZERROR_0_DIV_0); } else { SET_SIGNUM(a, 0); -- cgit v1.2.3-70-g09d2