1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

checkasm: Cast unsigned to signed

Avoid a warning for passing an unsigned value to abs(), some compilers
might optimize away abs().
This commit is contained in:
Luca Barbato 2016-07-19 05:26:33 +02:00
parent b183abfb5b
commit 40ad05bab2

View File

@ -190,7 +190,7 @@ int float_near_ulp(float a, float b, unsigned max_ulp)
return a == b; return a == b;
} }
if (abs(x.i - y.i) <= max_ulp) if (llabs((int64_t)x.i - y.i) <= max_ulp)
return 1; return 1;
return 0; return 0;