Use strtod not atof
parent
ae9542cc35
commit
cfdd67577c
|
@ -536,7 +536,7 @@ struct JsonParser {
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::atof(str.c_str() + start_pos);
|
return std::strtod(str.c_str() + start_pos, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* expect(str, res)
|
/* expect(str, res)
|
||||||
|
|
Loading…
Reference in New Issue