File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ JSONVar::JSONVar(long l) :
45
45
*this = l;
46
46
}
47
47
48
+ JSONVar::JSONVar (unsigned long ul) :
49
+ JSONVar()
50
+ {
51
+ *this = ul;
52
+ }
53
+
48
54
JSONVar::JSONVar (double d) :
49
55
JSONVar()
50
56
{
@@ -200,6 +206,11 @@ void JSONVar::operator=(long l)
200
206
replaceJson (cJSON_CreateNumber (l));
201
207
}
202
208
209
+ void JSONVar::operator =(unsigned long ul)
210
+ {
211
+ replaceJson (cJSON_CreateNumber (ul));
212
+ }
213
+
203
214
void JSONVar::operator =(double d)
204
215
{
205
216
replaceJson (cJSON_CreateNumber (d));
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class JSONVar : public Printable {
33
33
JSONVar (bool b);
34
34
JSONVar (int i);
35
35
JSONVar (long l);
36
+ JSONVar (unsigned long ul);
36
37
JSONVar (double d);
37
38
JSONVar (const char * s);
38
39
JSONVar (const String& s);
@@ -58,6 +59,7 @@ class JSONVar : public Printable {
58
59
void operator =(bool b);
59
60
void operator =(int i);
60
61
void operator =(long l);
62
+ void operator =(unsigned long ul);
61
63
void operator =(double d);
62
64
void operator =(const char * s);
63
65
void operator =(const String& s);
You can’t perform that action at this time.
0 commit comments