mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 01:31:00 +00: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:
parent
b183abfb5b
commit
40ad05bab2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user