Browse Source

AP_Param: use strtof instead of atof

we don't need double precision
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
31b0663115
  1. 2
      libraries/AP_Param/AP_Param.cpp

2
libraries/AP_Param/AP_Param.cpp

@ -1893,7 +1893,7 @@ bool AP_Param::parse_param_line(char *line, char **vname, float &value, bool &re @@ -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);

Loading…
Cancel
Save