From 0bc525c9a3b7a882233bb88c3de93b479ae6bc53 Mon Sep 17 00:00:00 2001 From: William Hart Date: Sun, 8 Jun 2014 21:30:32 +0100 Subject: [PATCH] Fixed a bug in mpir_invert_pi2 triggered by the MPFR test code. --- gmp-impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmp-impl.h b/gmp-impl.h index de7a364b..b809ee7b 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -2861,7 +2861,7 @@ do { \ } \ sub_ddmmss(_p, _t0, _p, _t0, (d1), (d0)); \ } \ - if (UNLIKELY(_p <= 2)) \ + if (UNLIKELY(-_p <= 2)) \ __mpir_invert_pi2(d1inv, d1, d0); \ else \ d1inv = _v; \