From 8dd900c2eda125cf2780d4ac08ba1a8eaf628c44 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 28 Oct 2001 19:09:38 +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 4e0b17ee641..9bb59b9b2d4 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-27 Gerd Moellmann * xdisp.c (move_it_vertically_backward): Use 2/3 line_height diff --git a/src/xfns.c b/src/xfns.c index 6421ef8ef0b..7f42c14b3b0 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -8053,11 +8053,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.39.2