From: Gerd Moellmann Date: Sun, 28 Oct 2001 19:09:38 +0000 (+0000) Subject: (x_build_heuristic_mask): Fix a bug not incrementing X-Git-Tag: emacs-21.2~436 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8dd900c2eda125cf2780d4ac08ba1a8eaf628c44;p=emacs.git (x_build_heuristic_mask): Fix a bug not incrementing a loop counter. --- 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);