Skip to content

Commit cb5af6a

Browse files
committed
Port #4667 to SAM core
1 parent 8b24de3 commit cb5af6a

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
@@ -249,7 +249,7 @@ size_t Print::printFloat(double number, uint8_t digits)
249249
while (digits-- > 0)
250250
{
251251
remainder *= 10.0;
252-
int toPrint = int(remainder);
252+
unsigned int toPrint = (unsigned int)remainder;
253253
n += print(toPrint);
254254
remainder -= toPrint;
255255
}

0 commit comments

Comments
 (0)