From 66ddfdeae60c3f90b4b0439496d16442ff91ba45 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Fri, 24 Apr 2015 12:57:36 +0900 Subject: [PATCH] AP_Param: fix compile warnings re float constants --- libraries/AP_Param/AP_Param.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Param/AP_Param.cpp b/libraries/AP_Param/AP_Param.cpp index 8a368e4600..9bd7cf83a0 100644 --- a/libraries/AP_Param/AP_Param.cpp +++ b/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 // 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) {