diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 10:20:09 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 10:20:09 +0000 |
commit | 933e8dbb58a9fab0e39e7af4f36ac2d62e0b6145 (patch) | |
tree | c62b85544427d02a046ff64c41963522935aaa32 /set_si.c | |
parent | 9c8bad1fa247b63fd658c2c28d2089fea7d56a91 (diff) | |
download | mpfr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |