From: SmallJoker Date: Tue, 18 Dec 2018 18:50:07 +0000 (+0100) Subject: ieee_float: Silence compiler warning X-Git-Tag: 5.0.0~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80eb762af13f11ca48b69c818b737c68f8b31822;p=oweals%2Fminetest.git ieee_float: Silence compiler warning Trivial issue reported by @pgimeno --- 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;