AP_Param: use strtof instead of atof

we don't need double precision
This commit is contained in:
Andrew Tridgell 2019-10-27 22:51:45 +11:00
parent dcc417f27b
commit 31b0663115
1 changed files with 1 additions and 1 deletions

View File

@ -1893,7 +1893,7 @@ bool AP_Param::parse_param_line(char *line, char **vname, float &value, bool &re
if (value_s == nullptr) { if (value_s == nullptr) {
return false; return false;
} }
value = atof(value_s); value = strtof(value_s, NULL);
*vname = pname; *vname = pname;
const char *flags_s = strtok_r(nullptr, ", =\t\r\n", &saveptr); const char *flags_s = strtok_r(nullptr, ", =\t\r\n", &saveptr);