diff options
author | Don Gagne <don@thegagnes.com> | 2014-06-29 17:47:24 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2014-06-29 17:47:24 -0700 |
commit | 92adbe9216c96c53d1baa4eb1e14b4ede272c080 (patch) | |
tree | a5167e5c336b4f8fcb1550317c7e26da7bfedbfe /src/systemcmds/tests/test_conv.cpp | |
parent | 28a31708f98eefa4ceb04617f2da3dd7892c99fa (diff) | |
download | px4-firmware-92adbe9216c96c53d1baa4eb1e14b4ede272c080.tar.gz px4-firmware-92adbe9216c96c53d1baa4eb1e14b4ede272c080.tar.bz2 px4-firmware-92adbe9216c96c53d1baa4eb1e14b4ede272c080.zip |
Fix compiler warnings
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..0ecdc8eb9 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", f, REG_TO_SIGNED(FLOAT_TO_REG(f)), (double)fres); return 1; } } |