aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/tests/test_conv.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-06-30 12:19:44 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-06-30 12:19:44 +0200
commitee8f4dcee639effe982bbb099a6f86f7c4fce5e0 (patch)
tree50f6b8e77c84cfa1570c97efea219b17695e2752 /src/systemcmds/tests/test_conv.cpp
parent3f6851b9879c2e4d764926a3bc29ff800a17b73d (diff)
downloadpx4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.tar.gz
px4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.tar.bz2
px4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.zip
systemcmds: Warning fixes
Diffstat (limited to 'src/systemcmds/tests/test_conv.cpp')
-rw-r--r--src/systemcmds/tests/test_conv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_conv.cpp b/src/systemcmds/tests/test_conv.cpp
index 0ecdc8eb9..fda949c61 100644
--- a/src/systemcmds/tests/test_conv.cpp
+++ b/src/systemcmds/tests/test_conv.cpp
@@ -65,7 +65,7 @@ int test_conv(int argc, char *argv[])
float f = i/10000.0f;
float fres = REG_TO_FLOAT(FLOAT_TO_REG(f));
if (fabsf(f - fres) > 0.0001f) {
- warnx("conversion fail: input: %8.4f, intermediate: %d, result: %8.4f", f, REG_TO_SIGNED(FLOAT_TO_REG(f)), (double)fres);
+ warnx("conversion fail: input: %8.4f, intermediate: %d, result: %8.4f", (double)f, REG_TO_SIGNED(FLOAT_TO_REG(f)), (double)fres);
return 1;
}
}