Skip to content

Commit

Permalink
Fix GCC 4.8.5 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Sep 27, 2017
1 parent a428e12 commit 353bbd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ArduinoJson/Serialization/FloatParts.hpp
Expand Up @@ -27,9 +27,8 @@ struct FloatParts {
exponent = normalize(value);

integral = uint32_t(value);
TFloat remainder = value - TFloat(integral);
TFloat remainder = (value - TFloat(integral)) * TFloat(maxDecimalPart);

remainder *= maxDecimalPart;
decimal = uint32_t(remainder);
remainder = remainder - TFloat(decimal);

Expand Down

0 comments on commit 353bbd0

Please sign in to comment.