]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_build_heuristic_mask): Fix a bug not incrementing
authorGerd Moellmann <gerd@gnu.org>
Sun, 28 Oct 2001 19:08:14 +0000 (19:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 28 Oct 2001 19:08:14 +0000 (19:08 +0000)
a loop counter.

src/ChangeLog
src/xfns.c

index 2ba3c7cd09d4ca83bc85254f07be796e15416eac..9f51b7df5ca7df7cb4baaada1d24db75adf98a90 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-28  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
+       a loop counter.
+
 2001-10-28  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * emacs.c: Use argv[0] instead of emacs when -t was specified.
index c20efb4392b4cec64aa40552939b4801aca1ba59..fb71e47c14c3f0d9c1b6f60834e96bca16086cc2 100644 (file)
@@ -8185,11 +8185,9 @@ x_build_heuristic_mask (f, img, how)
   
   if (CONSP (how))
     {
-      int rgb[3], i = 0;
+      int rgb[3], i;
 
-      while (i < 3
-            && CONSP (how)
-            && NATNUMP (XCAR (how)))
+      for (i = 0; i < 3 && CONSP (how) && NATNUMP (XCAR (how)); ++i)
        {
          rgb[i] = XFASTINT (XCAR (how)) & 0xffff;
          how = XCDR (how);