Commit c48cb93b authored by Sandeep Mistry's avatar Sandeep Mistry

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

parent 6f3d25ea
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment