Mercurial > audlegacy-plugins
changeset 3015:9e26c15e78b7
Overdoing the pointer voodoo that much is a strict-aliasing violation.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Wed, 08 Apr 2009 23:32:18 +0100 |
parents | 2dbd1c39fd12 |
children | 767f4f0a6fd6 |
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 Apr 08 23:24:00 2009 +0100 +++ b/src/aac/libfaad2/ic_predict.c Wed Apr 08 23:32:18 2009 +0100 @@ -55,9 +55,9 @@ 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)tmp1 + (float32_t)tmp2 - (float32_t)tmp; } else { - *pf = *(float32_t*)&tmp; + *pf = (float32_t)tmp; } }