summaryrefslogtreecommitdiff
path: root/fitz/filt_predict.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/filt_predict.c')
-rw-r--r--fitz/filt_predict.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/filt_predict.c b/fitz/filt_predict.c
index 8653d35e..17242742 100644
--- a/fitz/filt_predict.c
+++ b/fitz/filt_predict.c
@@ -112,9 +112,9 @@ paeth(int a, int b, int c)
{
/* The definitions of ac and bc are correct, not a typo. */
int ac = b - c, bc = a - c, abcc = ac + bc;
- int pa = (ac < 0 ? -ac : ac);
- int pb = (bc < 0 ? -bc : bc);
- int pc = (abcc < 0 ? -abcc : abcc);
+ int pa = ABS(ac);
+ int pb = ABS(bc);
+ int pc = ABS(abcc);
return pa <= pb && pa <= pc ? a : pb <= pc ? b : c;
}