diff options
author | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 15:04:29 -0400 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2016-07-18 15:04:29 -0400 |
commit | c48cb93b2c1e80f1a4c891eb0126fe758f542e86 (patch) | |
tree | dd7aa3f168c383e9a41d788713ab5e689f25d68f | |
parent | 6f3d25ea845452864053efeabf001bf0dee58c28 (diff) |
Cast to "unsigned int" instead of just "unsigned" for consistency
-rw-r--r-- | cores/arduino/Print.cpp | 2 |
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; } |