diff src/aac/libfaad2/ic_predict.c @ 2316:62391135da44

fixed some warnings
author Cristi Magherusan <majeru@atheme.org>
date Tue, 15 Jan 2008 12:35:54 +0200
parents e6c5fdae6e88
children f1b6f1b2cdb3
line wrap: on
line diff
--- a/src/aac/libfaad2/ic_predict.c	Mon Jan 14 19:20:57 2008 +0100
+++ b/src/aac/libfaad2/ic_predict.c	Tue Jan 15 12:35:54 2008 +0200
@@ -52,16 +52,16 @@
         tmp2 = tmp;                             /* add 1 lsb and elided one */
         tmp &= (uint32_t)0xff800000;       /* extract exponent and sign */
         
-        *pf = *(float32_t*)&tmp1 + *(float32_t*)&tmp2 - *(float32_t*)&tmp;
+        *pf = *(float32_t*)(void*)&tmp1 + *(float32_t*)(void*)&tmp2 - *(float32_t*)(void*)&tmp;
     } else {
-        *pf = *(float32_t*)&tmp;
+        *pf = *(float32_t*)(void*)&tmp;
     }
 }
 
 static int16_t quant_pred(float32_t x)
 {
     int16_t q;
-    uint32_t *tmp = (uint32_t*)&x;
+    uint32_t *tmp = (uint32_t*)(void*)&x;
 
     q = (int16_t)(*tmp>>16);
 
@@ -71,7 +71,7 @@
 static float32_t inv_quant_pred(int16_t q)
 {
     float32_t x;
-    uint32_t *tmp = (uint32_t*)&x;
+    uint32_t *tmp = (uint32_t*)(void*)&x;
     *tmp = ((uint32_t)q)<<16;
 
     return x;