aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2016-07-18 15:04:29 -0400
committerSandeep Mistry <s.mistry@arduino.cc>2016-07-18 15:04:29 -0400
commitc48cb93b2c1e80f1a4c891eb0126fe758f542e86 (patch)
treedd7aa3f168c383e9a41d788713ab5e689f25d68f
parent6f3d25ea845452864053efeabf001bf0dee58c28 (diff)
Cast to "unsigned int" instead of just "unsigned" for consistency
-rw-r--r--cores/arduino/Print.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}