diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-01 09:34:26 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-01 09:34:26 +0200 |
commit | efc992b4d9bbaf39addc90b6acb3104288cfba5b (patch) | |
tree | 83f633ec027022b3c575aa0770769bf55c6edda9 /src/systemcmds/tests/test_conv.cpp | |
parent | a43e963bdb73e6fa0480d442e72e1d764418cad4 (diff) | |
parent | 48f4a1e5cd6ef653b466eb68c1073fb47cbefbd7 (diff) | |
download | px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.tar.gz px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.tar.bz2 px4-firmware-efc992b4d9bbaf39addc90b6acb3104288cfba5b.zip |
Merged master into geo
Diffstat (limited to 'src/systemcmds/tests/test_conv.cpp')
-rw-r--r-- | src/systemcmds/tests/test_conv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_conv.cpp b/src/systemcmds/tests/test_conv.cpp index 50dece816..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)), 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; } } |