summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-07-20 12:26:27 +0000
committerSebastian Rasmussen <sebras@hotmail.com>2010-07-20 12:26:27 +0000
commit544fb8ec397bbc5ff847a764e4885144ed852575 (patch)
treed9440bd9e380201268bda206fe1a404e3a3b05a1 /fitz
parent3e30988a03ac08b86925f3da803520ccff63831c (diff)
downloadmupdf-544fb8ec397bbc5ff847a764e4885144ed852575.tar.xz
Replace explicit comparisons with MIN/MAX/ABS macros.
Diffstat (limited to 'fitz')
-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;
}