summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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 66eaf82..d06baf6 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;
OpenPOWER on IntegriCloud