From fb377b9a71dbc0a6d52d61eed4d47f99bb06d584 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 11 Mar 2021 18:28:05 -0500 Subject: amend that... Signed-off-by: Thomas E. Dickey --- src/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cursor.c b/src/cursor.c index 490ca20..9f0442c 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -428,7 +428,7 @@ _XcursorFloydSteinberg (const XcursorImage *image, XcursorCoreCursor *core) n = (int) npixels; max_inten = 0; min_inten = 0xff; - while (n-- >= 0) + while (n-- > 0) { p = *pixel++; *aP++ = (int) (p >> 24); -- cgit v1.2.3