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:
parent
87643f93d5
commit
1884d1d331
@ -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…
x
Reference in New Issue
Block a user