Commit 40ad05ba authored by Luca Barbato's avatar Luca Barbato

checkasm: Cast unsigned to signed

Avoid a warning for passing an unsigned value to abs(), some compilers
might optimize away abs().
parent b183abfb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment