aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-09-03 18:40:30 +0200
committerCristian Maglie <c.maglie@bug.st>2013-09-03 18:40:30 +0200
commitcbeaa543fc2ea23efc8a2d64baf2b852a755af23 (patch)
tree32b5ca778cb6b17e20e1433c925e4a5b2f69c2d6 /cores/arduino/WString.h
parent4d851c1c5998ffeee63b697f9c5d655e5b5885c4 (diff)
Fixed String class regression after f80c6c5f35cddcf4761a3c97feb8504425e9d27d
This should make explicit String-from-integer constructor working again: int a = 10; String(a, 4);
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r--cores/arduino/WString.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h
index f801f63..7402430 100644
--- a/cores/arduino/WString.h
+++ b/cores/arduino/WString.h
@@ -69,8 +69,8 @@ public:
explicit String(unsigned int, unsigned char base=10);
explicit String(long, unsigned char base=10);
explicit String(unsigned long, unsigned char base=10);
- explicit String(float, int decimalPlaces=2);
- explicit String(double, int decimalPlaces=2);
+ explicit String(float, unsigned char decimalPlaces=2);
+ explicit String(double, unsigned char decimalPlaces=2);
~String(void);
// memory management
@@ -113,7 +113,7 @@ public:
String & operator += (const String &rhs) {concat(rhs); return (*this);}
String & operator += (const char *cstr) {concat(cstr); return (*this);}
String & operator += (char c) {concat(c); return (*this);}
- String & operator += (unsigned char num) {concat(num); return (*this);}
+ String & operator += (unsigned char num) {concat(num); return (*this);}
String & operator += (int num) {concat(num); return (*this);}
String & operator += (unsigned int num) {concat(num); return (*this);}
String & operator += (long num) {concat(num); return (*this);}