# HG changeset patch # User mru # Date 1266681768 0 # Node ID 496ffb1657ea903a475d7a7cb20717df045a097d # Parent 935e766af9a11d8ff8058b9a36e9d11af04ec340 Add casts to correct return type in macros for missing libm funcs diff -r 935e766af9a1 -r 496ffb1657ea internal.h --- a/internal.h Sat Feb 20 12:22:24 2010 +0000 +++ b/internal.h Sat Feb 20 16:02:48 2010 +0000 @@ -221,12 +221,12 @@ #if !HAVE_EXP2F #undef exp2f -#define exp2f(x) exp2(x) +#define exp2f(x) ((float)exp2(x)) #endif /* HAVE_EXP2F */ #if !HAVE_LLRINT #undef llrint -#define llrint(x) rint(x) +#define llrint(x) ((long long)rint(x)) #endif /* HAVE_LLRINT */ #if !HAVE_LOG2 @@ -236,7 +236,7 @@ #if !HAVE_LOG2F #undef log2f -#define log2f(x) log2(x) +#define log2f(x) ((float)log2(x)) #endif /* HAVE_LOG2F */ #if !HAVE_LRINT