changeset 2865:0ba28b84bdef

Less pointer voodoo, no more warnings, audio output unchanged. Everybody wins!
author Tony Vroon <chainsaw@gentoo.org>
date Wed, 06 Aug 2008 11:48:18 +0100
parents 0d0a52f82be4
children a31410f560cf
files src/aac/libfaad2/ic_predict.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/aac/libfaad2/ic_predict.c	Wed Aug 06 11:17:21 2008 +0100
+++ b/src/aac/libfaad2/ic_predict.c	Wed Aug 06 11:48:18 2008 +0100
@@ -52,9 +52,9 @@
         tmp2 = tmp;                             /* add 1 lsb and elided one */
         tmp &= (uint32_t)0xff800000;       /* extract exponent and sign */
         
-        *pf = *(float32_t*)(void*)&tmp1 + *(float32_t*)(void*)&tmp2 - *(float32_t*)(void*)&tmp;
+        *pf = (float32_t)tmp1 + (float32_t)tmp2 - (float32_t)tmp;
     } else {
-        *pf = *(float32_t*)(void*)&tmp;
+        *pf = (float32_t)tmp;
     }
 }