Skip to content

Commit c48cb93

Browse files
committed
Cast to "unsigned int" instead of just "unsigned" for consistency
1 parent 6f3d25e commit c48cb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ size_t Print::printFloat(double number, uint8_t digits)
257257
while (digits-- > 0)
258258
{
259259
remainder *= 10.0;
260-
unsigned toPrint = unsigned(remainder);
260+
unsigned int toPrint = (unsigned int)(remainder);
261261
n += print(toPrint);
262262
remainder -= toPrint;
263263
}

0 commit comments

Comments
 (0)