From 26e8fa3b508eb047e85f4e923fc8e82a1aa656ba Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Tue, 22 Sep 2015 13:56:48 +0200 Subject: tiny_psnr: Use the correct abs() version --- tests/tiny_psnr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tiny_psnr.c') diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 66eaf82895..d06baf6c94 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) b = buf[1][j]; } sse += (a - b) * (a - b); - dist = abs(a - b); + dist = llabs(a - b); if (dist > maxdist) maxdist = dist; break; -- cgit v1.2.3