Cast to "unsigned int" instead of just "unsigned" for consistency
This commit is contained in:
parent
6f3d25ea84
commit
c48cb93b2c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue