Fix GCC 4.8.5 warning

This commit is contained in:
Benoit Blanchon
2017-09-27 09:45:48 +02:00
parent a428e125fa
commit 353bbd0e8c

View File

@ -27,9 +27,8 @@ struct FloatParts {
exponent = normalize(value); exponent = normalize(value);
integral = uint32_t(value); integral = uint32_t(value);
TFloat remainder = value - TFloat(integral); TFloat remainder = (value - TFloat(integral)) * TFloat(maxDecimalPart);
remainder *= maxDecimalPart;
decimal = uint32_t(remainder); decimal = uint32_t(remainder);
remainder = remainder - TFloat(decimal); remainder = remainder - TFloat(decimal);