Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 94d6f56

Browse files
committedJul 18, 2016
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.