Skip to content

Commit 94d6f56

Browse files
committed
Port arduino/Arduino#4667 to SAMD core
1 parent 0a35b55 commit 94d6f56

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
@@ -245,7 +245,7 @@ size_t Print::printFloat(double number, uint8_t digits)
245245
while (digits-- > 0)
246246
{
247247
remainder *= 10.0;
248-
int toPrint = int(remainder);
248+
unsigned int toPrint = (unsigned int)remainder;
249249
n += print(toPrint);
250250
remainder -= toPrint;
251251
}

0 commit comments

Comments
 (0)