changeset 843:496ffb1657ea libavutil

Add casts to correct return type in macros for missing libm funcs
author mru
date Sat, 20 Feb 2010 16:02:48 +0000
parents 935e766af9a1
children d1890ea2aa5c
files internal.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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