You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user