diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-07-05 14:01:07 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-07-05 14:01:07 +0000 |
commit | be7a851e7caf7e3f6e87bd439a5212da1ceea03a (patch) | |
tree | 9a95e21f228ffd146b2328839316b7fb0f05c5cb /set_si.c | |
parent | 193040012cf92e718bebd452d3d1c0ee0160f767 (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |