summaryrefslogtreecommitdiff
path: root/set_si.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 10:20:09 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 10:20:09 +0000
commit933e8dbb58a9fab0e39e7af4f36ac2d62e0b6145 (patch)
treec62b85544427d02a046ff64c41963522935aaa32 /set_si.c
parent9c8bad1fa247b63fd658c2c28d2089fea7d56a91 (diff)
downloadmpfr-933e8dbb58a9fab0e39e7af4f36ac2d62e0b6145.tar.gz
wrong sign passed to mpfr_can_round (mp_limb_t may be unsigned)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1286 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_si.c')
-rw-r--r--set_si.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/set_si.c b/set_si.c
index 65fd0f23c..2dbe51bc1 100644
--- a/set_si.c
+++ b/set_si.c
@@ -63,7 +63,8 @@ mpfr_set_si (x, i, rnd_mode)
if (MPFR_PREC(x) < nbits)
{
int carry;
- carry = mpfr_round_raw(xp+xn, xp+xn, nbits, (ai < 0), MPFR_PREC(x),
+
+ carry = mpfr_round_raw(xp+xn, xp+xn, nbits, (i < 0), MPFR_PREC(x),
rnd_mode, &inex);
if (carry)
{