diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-07-20 12:26:27 +0000 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-07-20 12:26:27 +0000 |
commit | 544fb8ec397bbc5ff847a764e4885144ed852575 (patch) | |
tree | d9440bd9e380201268bda206fe1a404e3a3b05a1 /fitz | |
parent | 3e30988a03ac08b86925f3da803520ccff63831c (diff) | |
download | mupdf-544fb8ec397bbc5ff847a764e4885144ed852575.tar.xz |
Replace explicit comparisons with MIN/MAX/ABS macros.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/filt_predict.c | 6 |
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; } |