diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-05 08:34:34 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-05 08:34:34 +0000 |
commit | 98a0a021fe98262179ba50bd70ba5f630695a535 (patch) | |
tree | 353a190ad29d942879924b11cc294480cdf23840 | |
parent | 5eab99b3dc4721c6b35ac8af3a4662ffe4a07738 (diff) | |
download | mpfr-98a0a021fe98262179ba50bd70ba5f630695a535.tar.gz |
[src/mul_ui.c] Fixed bug in mpfr_mul_ui/si: the inexact flag wasn't set.
(merged changeset r9505 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9516 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/mul_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mul_ui.c b/src/mul_ui.c index 31e663ac6..9b762d4f7 100644 --- a/src/mul_ui.c +++ b/src/mul_ui.c @@ -115,7 +115,7 @@ mpfr_mul_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode MPFR_SET_EXP (y, MPFR_GET_EXP (x) + cnt); MPFR_SET_SAME_SIGN (y, x); - return inexact; + MPFR_RET (inexact); } int mpfr_mul_si (mpfr_ptr y, mpfr_srcptr x, long int u, mpfr_rnd_t rnd_mode) |