Browse Source

AP_Param: fix compile warnings re float constants

mission-4.1.18
Tom Pittenger 10 years ago committed by Randy Mackay
parent
commit
66ddfdeae6
  1. 2
      libraries/AP_Param/AP_Param.cpp

2
libraries/AP_Param/AP_Param.cpp

@ -1223,7 +1223,7 @@ AP_Param *AP_Param::set_param_by_name(const char *pname, float value, enum ap_va @@ -1223,7 +1223,7 @@ AP_Param *AP_Param::set_param_by_name(const char *pname, float value, enum ap_va
// add a small amount before casting parameter values
// from float to integer to avoid truncating to the
// next lower integer value.
float rounding_addition = 0.01;
float rounding_addition = 0.01f;
// handle variables with standard type IDs
if (var_type == AP_PARAM_FLOAT) {

Loading…
Cancel
Save