changeset 11723:87851e2b449a libavcodec

1.0 and the resulting exactly representable value must be marked as float as well, gcc is hopelessly trash.
author michael
date Thu, 13 May 2010 18:06:44 +0000
parents 5aa83c5fb2c9
children 5b64cfa35e9c
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Thu May 13 17:58:17 2010 +0000
+++ b/mpegaudiodec.c	Thu May 13 18:06:44 2010 +0000
@@ -40,7 +40,7 @@
 #include "mathops.h"
 
 #if CONFIG_FLOAT
-#   define SHR(a,b)       ((a)*(1.0/(1<<(b))))
+#   define SHR(a,b)       ((a)*(1.0f/(1<<(b))))
 #   define compute_antialias compute_antialias_float
 #   define FIXR_OLD(a)    ((int)((a) * FRAC_ONE + 0.5))
 #   define FIXR(x)        ((float)(x))