avutil/softfloat: Fix dependence on signed overflow in av_normalize1_sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-09 16:37:26 +02:00
parent f3b54ee989
commit 44198a728d

View File

@ -57,7 +57,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){
static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
#if 1
if(a.mant + 0x40000000 < 0){
if((int32_t)(a.mant + 0x40000000U) < 0){
a.exp++;
a.mant>>=1;
}