File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,14 @@ String::String(unsigned long value, unsigned char base)
106
106
*this = buf;
107
107
}
108
108
109
- String::String (float value, int decimalPlaces)
109
+ String::String (float value, unsigned char decimalPlaces)
110
110
{
111
111
init ();
112
112
char buf[33 ];
113
113
*this = dtostrf (value, (decimalPlaces + 2 ), decimalPlaces, buf);
114
114
}
115
115
116
- String::String (double value, int decimalPlaces)
116
+ String::String (double value, unsigned char decimalPlaces)
117
117
{
118
118
init ();
119
119
char buf[33 ];
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ class String
69
69
explicit String (unsigned int , unsigned char base=10 );
70
70
explicit String (long , unsigned char base=10 );
71
71
explicit String (unsigned long , unsigned char base=10 );
72
- explicit String (float , int decimalPlaces=2 );
73
- explicit String (double , int decimalPlaces=2 );
72
+ explicit String (float , unsigned char decimalPlaces=2 );
73
+ explicit String (double , unsigned char decimalPlaces=2 );
74
74
~String (void );
75
75
76
76
// memory management
@@ -113,7 +113,7 @@ class String
113
113
String & operator += (const String &rhs) {concat (rhs); return (*this );}
114
114
String & operator += (const char *cstr) {concat (cstr); return (*this );}
115
115
String & operator += (char c) {concat (c); return (*this );}
116
- String & operator += (unsigned char num) {concat (num); return (*this );}
116
+ String & operator += (unsigned char num) {concat (num); return (*this );}
117
117
String & operator += (int num) {concat (num); return (*this );}
118
118
String & operator += (unsigned int num) {concat (num); return (*this );}
119
119
String & operator += (long num) {concat (num); return (*this );}
You can’t perform that action at this time.
0 commit comments