From ee382eb9e03bd609bc0da95a77e7b7232d7e56d5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 5 Jul 2012 16:56:32 +0100 Subject: Move to static inline functions from macros. Instead of using macros for min/max/abs/clamp, we move to using inline functions. These are more typesafe, and should produce equivalent code on compilers that support inline (i.e. pretty much everything we care about these days). People can always do their own macro versions if they prefer. --- xps/xps_zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xps/xps_zip.c') diff --git a/xps/xps_zip.c b/xps/xps_zip.c index bb6857ee..17523f10 100644 --- a/xps/xps_zip.c +++ b/xps/xps_zip.c @@ -302,8 +302,8 @@ xps_find_and_read_zip_dir(xps_document *doc) fz_seek(doc->file, 0, SEEK_END); file_size = fz_tell(doc->file); - maxback = MIN(file_size, 0xFFFF + sizeof buf); - back = MIN(maxback, sizeof buf); + maxback = fz_mini(file_size, 0xFFFF + sizeof buf); + back = fz_mini(maxback, sizeof buf); while (back < maxback) { -- cgit v1.2.3