summaryrefslogtreecommitdiff
path: root/sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'sum.c')
-rw-r--r--sum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sum.c b/sum.c
index 32fd8e853..9f1824ee7 100644
--- a/sum.c
+++ b/sum.c
@@ -48,7 +48,8 @@ void mpfr_count_sort (mpfr_ptr const tab[], unsigned long n,
}
exp_num = max - min + 1;
- if (exp_num > 42 * __gmpfr_ceil_log2 (n)) /* FIXME : better test */
+ if (exp_num > (unsigned long) 42 * __gmpfr_ceil_log2 ((double)n))
+ /* FIXME : better test */
{
heap_sort_exp_clean (tab, n, perm);
return;