ieee_float: Silence compiler warning

Trivial issue reported by @pgimeno
This commit is contained in:
SmallJoker 2018-12-18 19:50:07 +01:00
parent 8e4095f068
commit 80eb762af1

@ -70,7 +70,7 @@ u32 f32Tou32Slow(f32 f)
return signbit | 0x7FC00000UL; return signbit | 0x7FC00000UL;
if (std::isinf(f)) if (std::isinf(f))
return signbit | 0x7F800000UL; return signbit | 0x7F800000UL;
int exp; int exp = 0; // silence warning
f32 mant = frexpf(f, &exp); f32 mant = frexpf(f, &exp);
u32 imant = (u32)std::floor((signbit ? -16777216.f : 16777216.f) * mant); u32 imant = (u32)std::floor((signbit ? -16777216.f : 16777216.f) * mant);
exp += 126; exp += 126;