diff options
author | SmallJoker <mk939@ymail.com> | 2018-12-18 19:50:07 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-12-18 19:50:07 +0100 |
commit | 80eb762af13f11ca48b69c818b737c68f8b31822 (patch) | |
tree | 0dfd7cfd61e74ea5179a7c027ffcd91bb19e7105 /src | |
parent | 8e4095f06832f4a786a77f4513f6fca9c1f6cc2b (diff) | |
download | minetest-80eb762af13f11ca48b69c818b737c68f8b31822.tar.gz minetest-80eb762af13f11ca48b69c818b737c68f8b31822.tar.bz2 minetest-80eb762af13f11ca48b69c818b737c68f8b31822.zip |
ieee_float: Silence compiler warning
Trivial issue reported by @pgimeno
Diffstat (limited to 'src')
-rw-r--r-- | src/util/ieee_float.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/ieee_float.cpp b/src/util/ieee_float.cpp index e7909360f..887258921 100644 --- a/src/util/ieee_float.cpp +++ b/src/util/ieee_float.cpp @@ -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; |