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 6f3d25ea84
commit c48cb93b2c
1 changed files with 1 additions and 1 deletions

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;
}