summaryrefslogtreecommitdiff
path: root/mul.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-22 12:14:44 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-22 12:14:44 +0000
commit4ca4db72d41e99941f3f7586335583fdf384dc62 (patch)
treecbee26ab80e18961850ee6de4260e044783c9ddd /mul.c
parent054c00ea8bd2186f0ba0bc338f9b42bc54a45230 (diff)
downloadmpfr-4ca4db72d41e99941f3f7586335583fdf384dc62.tar.gz
fixed bug: wrong sign when SIGN(a)<0 at beginning
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@125 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mul.c')
-rw-r--r--mul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mul.c b/mul.c
index 909a6568f..51778991b 100644
--- a/mul.c
+++ b/mul.c
@@ -160,7 +160,7 @@ printf("*ap=%u\n",*ap);
else mpn_lshift(cp, ap, an, 1);
}
}
- if (sign_product<0) CHANGE_SIGN(a);
+ if (sign_product * SIGN(a)<0) CHANGE_SIGN(a);
TMP_FREE(marker);
#ifdef DEBUG2
printf("b*c="); mpfr_print_raw(a); putchar('\n');