Avoid a warning for passing an unsigned value to abs().
---
tests/checkasm/checkasm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index b062197..34f49c0 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -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;
--
2.6.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel