diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index b0621973a6..34f49c0b37 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -190,7 +190,7 @@ int float_near_ulp(float a, float b, unsigned max_ulp) return a == b; } - if (abs(x.i - y.i) <= max_ulp) + if (llabs((int64_t)x.i - y.i) <= max_ulp) return 1; return 0;