about summary refs log tree commit diff
path: root/converter/other/fiasco/codec/tiling.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-12 20:40:29 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-12 20:40:29 +0000
commit47e6714f1bb9be3587d5c76d5638887b595e6355 (patch)
treea691961ad493be82b6c9b206304a458bd603a9e4 /converter/other/fiasco/codec/tiling.c
parent7270a56af11a9bf5ac18baa50dc8fedbd545af7f (diff)
downloadnetpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.tar.gz
netpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.tar.xz
netpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1643 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/codec/tiling.c')
-rw-r--r--converter/other/fiasco/codec/tiling.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/converter/other/fiasco/codec/tiling.c b/converter/other/fiasco/codec/tiling.c
index ea030c9a..83eb8b29 100644
--- a/converter/other/fiasco/codec/tiling.c
+++ b/converter/other/fiasco/codec/tiling.c
@@ -18,6 +18,8 @@
 
 #include <stdlib.h>
 
+#include "pm_c_util.h"
+
 #include "types.h"
 #include "macros.h"
 #include "error.h"
@@ -144,7 +146,7 @@ perform_tiling (const image_t *image, tiling_t *tiling)
 	 unsigned    number;		/* number of image tiles */
 	 unsigned    lx       = log2 (image->width - 1) + 1; /* x level */
 	 unsigned    ly       = log2 (image->height - 1) + 1; /* y level */
-	 unsigned    level    = max (lx, ly) * 2 - ((ly == lx + 1) ? 1 : 0);
+	 unsigned    level    = MAX(lx, ly) * 2 - ((ly == lx + 1) ? 1 : 0);
 	 var_list_t *var_list = Calloc (tiles, sizeof (var_list_t));
 	 
 	 /*