use labs for absolute value of long

should fix arm build
This commit is contained in:
maya 2016-12-20 06:07:38 +00:00
parent e3db1a05a1
commit 893cb91179

View File

@ -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);