Skip to content

Commit

Permalink
Save 10 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jul 8, 2017
1 parent 0669521 commit e5147e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArduinoJson/Polyfills/normalize.hpp
Expand Up @@ -23,7 +23,7 @@ int16_t normalize(T& value) {
if (value >= ARDUINOJSON_POSITIVE_EXPONENTIATION_THRESHOLD) {
for (; index >= 0; index--) {
if (value >= FloatTraits<T>::positiveBinaryPowerOfTen(index)) {
value /= FloatTraits<T>::positiveBinaryPowerOfTen(index);
value *= FloatTraits<T>::negativeBinaryPowerOfTen(index);
powersOf10 = int16_t(powersOf10 + bit);
}
bit >>= 1;
Expand Down

0 comments on commit e5147e6

Please sign in to comment.