changeset 40421:1eec9125d32e

(x_build_heuristic_mask): Fix a bug not incrementing a loop counter.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 28 Oct 2001 19:06:55 +0000
parents fffc7f4c2cc7
children 9128205bab04
files src/xfns.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Oct 28 19:05:36 2001 +0000
+++ b/src/xfns.c	Sun Oct 28 19:06:55 2001 +0000
@@ -8185,11 +8185,9 @@
   
   if (CONSP (how))
     {
-      int rgb[3], i = 0;
-
-      while (i < 3
-	     && CONSP (how)
-	     && NATNUMP (XCAR (how)))
+      int rgb[3], i;
+
+      for (i = 0; i < 3 && CONSP (how) && NATNUMP (XCAR (how)); ++i)
 	{
 	  rgb[i] = XFASTINT (XCAR (how)) & 0xffff;
 	  how = XCDR (how);