1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Cast to "unsigned int" instead of just "unsigned" for consistency

This commit is contained in:
Sandeep Mistry 2016-07-18 15:04:29 -04:00
parent 87643f93d5
commit 1884d1d331

View File

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