diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-09-03 18:40:30 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-09-03 18:40:30 +0200 |
commit | cbeaa543fc2ea23efc8a2d64baf2b852a755af23 (patch) | |
tree | 32b5ca778cb6b17e20e1433c925e4a5b2f69c2d6 /cores/arduino/WString.cpp | |
parent | 4d851c1c5998ffeee63b697f9c5d655e5b5885c4 (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.cpp')
-rw-r--r-- | cores/arduino/WString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index e462bee..63af6d3 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -106,14 +106,14 @@ String::String(unsigned long value, unsigned char base) *this = buf; } -String::String(float value, int decimalPlaces) +String::String(float value, unsigned char decimalPlaces) { init(); char buf[33]; *this = dtostrf(value, (decimalPlaces + 2), decimalPlaces, buf); } -String::String(double value, int decimalPlaces) +String::String(double value, unsigned char decimalPlaces) { init(); char buf[33]; |