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:
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