From cac1daf08d638ef098883944361d377b4de958c6 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 28 Oct 2001 19:08:14 +0000 Subject: [PATCH] (x_build_heuristic_mask): Fix a bug not incrementing a loop counter. --- src/ChangeLog | 5 +++++ src/xfns.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2ba3c7cd09..9f51b7df5c 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 c20efb4392..fb71e47c14 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); -- 2.20.1