diff --git a/coders/xpm.c b/coders/xpm.c
index 6c7d866..45f8152 100644
--- a/coders/xpm.c
+++ b/coders/xpm.c
@@ -257,7 +257,7 @@
   ssize_t
     count;
 
-  size_t
+  unsigned long
     colors,
     columns,
     rows,