From 2ea82548a4a433f36746dfb62af0c930ab86e82b Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Thu, 2 Jul 2015 01:06:26 -0700 Subject: [PATCH] Change fabsf() to abs for int arg Clang complains that fabsf() is being used for an int arg. Use abs() instead. Signed-off-by: Mark Charlebois --- src/systemcmds/tests/test_rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_rc.c b/src/systemcmds/tests/test_rc.c index b4f68c35fb..1f150816d4 100644 --- a/src/systemcmds/tests/test_rc.c +++ b/src/systemcmds/tests/test_rc.c @@ -106,7 +106,7 @@ int test_rc(int argc, char *argv[]) /* go and check values */ for (unsigned i = 0; i < rc_input.channel_count; i++) { - if (fabsf(rc_input.values[i] - rc_last.values[i]) > 20) { + if (abs(rc_input.values[i] - rc_last.values[i]) > 20) { PX4_ERR("comparison fail: RC: %d, expected: %d", rc_input.values[i], rc_last.values[i]); (void)close(_rc_sub); return ERROR;