]> git.imager.perl.org - imager.git/blobdiff - map.c
[rt #99959] fix Imager::Matrix2d::rotate()'s centre point hanling
[imager.git] / map.c
diff --git a/map.c b/map.c
index 0e9c47db2dfd920f39de68311dee8382d98bda39..0431367f5b0613e85de9433162e70072aeb60f64 100644 (file)
--- a/map.c
+++ b/map.c
@@ -17,7 +17,7 @@ converting from RGBA to greyscale and back.
 =cut
 */
 
-#include "image.h"
+#include "imager.h"
 
 
 /*
@@ -37,9 +37,9 @@ maps im inplace into another image.
 void
 i_map(i_img *im, unsigned char (*maps)[256], unsigned int mask) {
   i_color *vals;
-  int x, y;
+  i_img_dim x, y;
   int i, ch;
-  int minset = -1, maxset;
+  int minset = -1, maxset = 0;
 
   mm_log((1,"i_map(im %p, maps %p, chmask %u)\n", im, maps, mask));