1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +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)
{
remainder *= 10.0;
int toPrint = int(remainder);
unsigned int toPrint = (unsigned int)remainder;
n += print(toPrint);
remainder -= toPrint;
}