use labs for absolute value of long
should fix arm build
This commit is contained in:
parent
e3db1a05a1
commit
893cb91179
@ -79,7 +79,7 @@ ATF_TC_BODY(fe_round, tc)
|
||||
|
||||
received = lrint(values[i].input);
|
||||
ATF_CHECK_MSG(
|
||||
(abs(received - values[i].expected) < EPSILON),
|
||||
(labs(received - values[i].expected) < EPSILON),
|
||||
"lrint rounding wrong, difference too large\n"
|
||||
"input: %f (index %d): got %ld, expected %ld\n",
|
||||
values[i].input, i, received, values[i].expected);
|
||||
|
Loading…
Reference in New Issue
Block a user