From b27f404fe297a2c7b00967c33a0779a8ca14f3ff Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 30 Nov 2001 00:07:36 +0000 Subject: Better sign comparison. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1592 280ebfd0-de03-0410-8827-d642c229c3f4 --- mul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mul.c') diff --git a/mul.c b/mul.c index 226494005..232efb95a 100644 --- a/mul.c +++ b/mul.c @@ -192,7 +192,7 @@ mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) MPFR_EXP(a) = __mpfr_emin; } - if (sign_product * MPFR_SIGN(a) < 0) + if (MPFR_SIGN(a) != sign_product) MPFR_CHANGE_SIGN(a); return inexact; -- cgit v1.2.1