diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-22 12:14:44 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-22 12:14:44 +0000 |
commit | 4ca4db72d41e99941f3f7586335583fdf384dc62 (patch) | |
tree | cbee26ab80e18961850ee6de4260e044783c9ddd /mul.c | |
parent | 054c00ea8bd2186f0ba0bc338f9b42bc54a45230 (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); |