Skip to content

Commit

Permalink
ieee_float: Silence compiler warning
Browse files Browse the repository at this point in the history
Trivial issue reported by @pgimeno
  • Loading branch information
SmallJoker committed Dec 18, 2018
1 parent 8e4095f commit 80eb762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/ieee_float.cpp
Expand Up @@ -70,7 +70,7 @@ u32 f32Tou32Slow(f32 f)
return signbit | 0x7FC00000UL;
if (std::isinf(f))
return signbit | 0x7F800000UL;
int exp;
int exp = 0; // silence warning
f32 mant = frexpf(f, &exp);
u32 imant = (u32)std::floor((signbit ? -16777216.f : 16777216.f) * mant);
exp += 126;
Expand Down

0 comments on commit 80eb762

Please sign in to comment.