File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
name =ArduinoSTL
2
- version =0.1.5
2
+ version =0.1.6
3
3
author =Mike Matera <matera@lifealgorithmic.com>
4
4
maintainer =Mike Matera <matera@lifealgorithmic.com>
5
5
sentence =A port of uClibc++ packaged as an Arduino library.
Original file line number Diff line number Diff line change @@ -324,9 +324,9 @@ namespace std{
324
324
}
325
325
unsigned int dec = temp.find('.', 0);
326
326
if (dec == string::npos) {
327
- var = atoi (temp.c_str());
327
+ var = atol (temp.c_str());
328
328
}else{
329
- var = atoi (temp.substr(0,dec).c_str());
329
+ var = atol (temp.substr(0,dec).c_str());
330
330
var += ((double) atoi(temp.substr(dec+1).c_str())) / pow(10.0,temp.size()-dec-1);
331
331
}
332
332
if (isneg)
@@ -351,9 +351,9 @@ namespace std{
351
351
}
352
352
unsigned int dec = temp.find('.', 0);
353
353
if (dec == string::npos) {
354
- var = atoi (temp.c_str());
354
+ var = atol (temp.c_str());
355
355
}else{
356
- var = atoi (temp.substr(0,dec).c_str());
356
+ var = atol (temp.substr(0,dec).c_str());
357
357
var += ((double) atoi(temp.substr(dec+1).c_str())) / pow(10.0,temp.size()-dec-1);
358
358
}
359
359
if (isneg)
You can’t perform that action at this time.
0 commit comments