summaryrefslogtreecommitdiff
path: root/sum.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 08:47:58 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 08:47:58 +0000
commit8f4275d0dd04dfc2200c4d35758f3ec4a6ae304e (patch)
treea2d77644ec060716fe531d4d38c570e9b4363f9e /sum.c
parent9b6193b20530cd2552d627d748d1cc1c54323ea1 (diff)
downloadmpfr-8f4275d0dd04dfc2200c4d35758f3ec4a6ae304e.tar.gz
sum.c:
* Completed a comment about T ** and const T ** mismatch. * Removed a useless and misleading const that makes icc complain. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5381 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sum.c')
-rw-r--r--sum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sum.c b/sum.c
index 8cafc622c..bfebc3530 100644
--- a/sum.c
+++ b/sum.c
@@ -33,6 +33,8 @@ MA 02110-1301, USA. */
const mpfr_s *const* : no
const mpfr_s **const : no
const mpfr_s *const*const: no
+ VL: this is not a bug, but a feature. See the reason here:
+ http://c-faq.com/ansi/constmismatch.html
*/
static void heap_sort (mpfr_srcptr *const, unsigned long, mpfr_srcptr *);
static void count_sort (mpfr_srcptr *const, unsigned long, mpfr_srcptr *,
@@ -239,7 +241,7 @@ mpfr_sum (mpfr_ptr ret, mpfr_ptr *const tab_p, unsigned long n, mp_rnd_t rnd)
{
mpfr_t cur_sum;
mp_prec_t prec;
- mpfr_srcptr *perm, *const tab = (mpfr_srcptr *const) tab_p;
+ mpfr_srcptr *perm, *const tab = (mpfr_srcptr *) tab_p;
int k, error_trap;
MPFR_ZIV_DECL (loop);
MPFR_SAVE_EXPO_DECL (expo);