]> git.imager.perl.org - imager.git/commitdiff
make more C89 compliant
authorTony Cook <tony@develop=help.com>
Tue, 10 Jan 2006 03:26:55 +0000 (03:26 +0000)
committerTony Cook <tony@develop=help.com>
Tue, 10 Jan 2006 03:26:55 +0000 (03:26 +0000)
CountColor/CountColor.xs

index df4cf1d85072951c8f1bdac2d529fc86f8015c6d..f094261f135689dd06d332c5063c1855a5a690ba 100644 (file)
@@ -22,8 +22,8 @@ count_color(i_img *im, i_color *color) {
 
   for (x = 0; x < im->xsize; ++x) {
     for (y = 0; y < im->ysize; ++y) {
-      i_gpix(im, x, y, &c);
       int match = 1;
+      i_gpix(im, x, y, &c);
       for (chan = 0; chan < im->channels; ++chan) {
         if (c.channel[chan] != color->channel[chan]) {
           match = 0;