From c48cb93b2c1e80f1a4c891eb0126fe758f542e86 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Mon, 18 Jul 2016 15:04:29 -0400 Subject: [PATCH] Cast to "unsigned int" instead of just "unsigned" for consistency --- cores/arduino/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index d829904..652fed0 100644 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -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; }