From 10169c8962e5c465c1ea77b2a0a69ca68b78d6e1 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Tue, 21 Feb 2017 10:20:45 +0000 Subject: [src/sum.c] Added a note about the "const" position in the prototypes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11329 280ebfd0-de03-0410-8827-d642c229c3f4 --- src/sum.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sum.c b/src/sum.c index 66d04702a..425ce3d75 100644 --- a/src/sum.c +++ b/src/sum.c @@ -24,6 +24,14 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., summation with application to computational geometry, Numerical Algorithms, volume 37, number 1-4, pages 101--112, 2004. */ +/* Note about the 3.1 branch and earlier: the "const" in the prototypes of + mpfr_sum and related functions is in an incorrect position. This bug is + present in the source only (since r3642); the MPFR manual is correct. + This is fixed in the trunk for the future MPFR 4.0.0. Let's not change + the 3.1 branch as it may be seen as an ABI breakage and this bug does + not have any consequence for the API. +*/ + #define MPFR_NEED_LONGLONG_H #include "mpfr-impl.h" -- cgit v1.2.1