From: Gerd Moellmann Date: Sun, 28 Oct 2001 19:08:14 +0000 (+0000) Subject: (x_build_heuristic_mask): Fix a bug not incrementing X-Git-Tag: ttn-vms-21-2-B4~19070 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cac1daf08d638ef098883944361d377b4de958c6;p=emacs.git (x_build_heuristic_mask): Fix a bug not incrementing a loop counter. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2ba3c7cd09d..9f51b7df5ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-10-28 Gerd Moellmann + + * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing + a loop counter. + 2001-10-28 Pavel Jan,Bm(Bk * emacs.c: Use argv[0] instead of emacs when -t was specified. diff --git a/src/xfns.c b/src/xfns.c index c20efb4392b..fb71e47c14c 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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);