summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-11-28 17:59:54 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-11-28 17:59:54 +0000
commit915a7b84308b85f7fc3bf7fb02db0acfe1d08c4d (patch)
tree03389ada6c7fa583d97700ec466d3e437dc8f15d
parent370b26653bb02328e914927e67c693ba46c64a5f (diff)
downloadmpfr-915a7b84308b85f7fc3bf7fb02db0acfe1d08c4d.tar.gz
[src/mpfr.h] Fixed bug in the mpfr_custom_init_set macro (typo in
variable name, which can yield incorrect behavior if the second argument is not a simple expression). Thanks to Andreas Enge for the bug report: https://sympa.inria.fr/sympa/arc/mpfr/2013-11/msg00029.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8715 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpfr.h b/src/mpfr.h
index 1852a4552..e2ede7824 100644
--- a/src/mpfr.h
+++ b/src/mpfr.h
@@ -960,7 +960,7 @@ __MPFR_DECLSPEC int mpfr_custom_get_kind _MPFR_PROTO ((mpfr_srcptr));
_t = (mpfr_kind_t) _k; \
_s = 1; \
} else { \
- _t = (mpfr_kind_t) -k; \
+ _t = (mpfr_kind_t) - _k; \
_s = -1; \
} \
_e = _t == MPFR_REGULAR_KIND ? (e) : \