diff options
author | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 14:50:09 -0400 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 14:50:09 -0400 |
commit | 6f3d25ea845452864053efeabf001bf0dee58c28 (patch) | |
tree | 3300c3f7e3795307ecccab9c6763c77e4319a31a /cores/arduino/Print.cpp | |
parent | 0fd650271c16364339227b49def1014ea7415b27 (diff) | |
parent | 437eabeaad8fae7547db95c4ca3a0763ad18d38a (diff) |
Merge pull request #4667 from bblanchon/patch-1
Speed and size improvement in Print::printFloat()
Diffstat (limited to 'cores/arduino/Print.cpp')
-rw-r--r-- | cores/arduino/Print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index 5a092af..d829904 100644 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -257,7 +257,7 @@ size_t Print::printFloat(double number, uint8_t digits) while (digits-- > 0) { remainder *= 10.0; - int toPrint = int(remainder); + unsigned toPrint = unsigned(remainder); n += print(toPrint); remainder -= toPrint; } |