summaryrefslogtreecommitdiff
path: root/src/uceil_log2.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-11 14:45:43 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-06-11 14:45:43 +0000
commit8d6cc9db85ec747a9fab063400f7affa3c7e05e1 (patch)
tree117e7dabe376f5d10e4900bd44ad7c5c5ce4c729 /src/uceil_log2.c
parente192efd130ffd535d02607e7245a80b410100f98 (diff)
downloadmpc-8d6cc9db85ec747a9fab063400f7affa3c7e05e1.tar.gz
corrected mixtures of signed/unsigned arisen due to signednedd change in
mp_prec_t with mpfr-3.0.0: uceil_log2.c, mpc-impl.h: changed return type to mp_prec_t pow.c: some casts to mp_prec_t git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@775 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src/uceil_log2.c')
-rw-r--r--src/uceil_log2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uceil_log2.c b/src/uceil_log2.c
index 862502f..11fe777 100644
--- a/src/uceil_log2.c
+++ b/src/uceil_log2.c
@@ -1,6 +1,6 @@
/* mpc_ceil_log2 - returns ceil(log(d)/log(2))
-Copyright 2004, 2009 Patrick Pelissier, Paul Zimmermann, Philippe Th\'eveny
+Copyright 2004, 2009, 2010 Patrick Pelissier, Paul Zimmermann, Philippe Th\'eveny, Andreas Enge
This file is part of the MPC Library.
@@ -23,7 +23,7 @@ MA 02111-1307, USA. */
/* returns ceil(log(d)/log(2)) if d > 0 */
/* Don't use count_leading_zeros since it is in longlong.h */
-unsigned long
+mp_prec_t
mpc_ceil_log2 (unsigned long d)
{
unsigned long exp;