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) {
return false;
}
value = atof(value_s);
value = strtof(value_s, NULL);
*vname = pname;
const char *flags_s = strtok_r(nullptr, ", =\t\r\n", &saveptr);