summaryrefslogtreecommitdiff
path: root/set_si.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-07-05 14:01:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-07-05 14:01:07 +0000
commitbe7a851e7caf7e3f6e87bd439a5212da1ceea03a (patch)
tree9a95e21f228ffd146b2328839316b7fb0f05c5cb /set_si.c
parent193040012cf92e718bebd452d3d1c0ee0160f767 (diff)
downloadmpfr-be7a851e7caf7e3f6e87bd439a5212da1ceea03a.tar.gz
fixed possible bug (testing sign of unsigned long) in mpfr_mul_ui
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@298 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_si.c')
-rw-r--r--set_si.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/set_si.c b/set_si.c
index 251884354..ed9da30e2 100644
--- a/set_si.c
+++ b/set_si.c
@@ -53,7 +53,7 @@ mpfr_set_ui(x, i, rnd_mode)
MPN_ZERO(MANT(x), xn);
x -> _mp_exp = BITS_PER_MP_LIMB - cnt;
/* warning: don't change the precision of x! */
- if (i*SIGN(x) < 0) CHANGE_SIGN(x);
+ if (SIGN(x) < 0) CHANGE_SIGN(x);
return;
}