1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-14 11:29:26 +01:00

Port #4667 to SAM core

This commit is contained in:
Sandeep Mistry 2016-07-18 15:10:09 -04:00
parent 1884d1d331
commit 05be7ce395

View File

@ -249,7 +249,7 @@ size_t Print::printFloat(double number, uint8_t digits)
while (digits-- > 0) while (digits-- > 0)
{ {
remainder *= 10.0; remainder *= 10.0;
int toPrint = int(remainder); unsigned int toPrint = (unsigned int)remainder;
n += print(toPrint); n += print(toPrint);
remainder -= toPrint; remainder -= toPrint;
} }