summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-09-22 13:56:48 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-09-29 14:33:01 +0200
commit26e8fa3b508eb047e85f4e923fc8e82a1aa656ba (patch)
treebd6e3328a040ea69de8d88ce2756306053c5a0b5 /tests
parentc9943f00cfa2471d1b8a3a9ddc7a21049a71090e (diff)
tiny_psnr: Use the correct abs() version
Diffstat (limited to 'tests')
-rw-r--r--tests/tiny_psnr.c2
1 files changed, 1 insertions, 1 deletions
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;