summaryrefslogtreecommitdiff
path: root/src/cursor.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2021-03-11 18:28:05 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2021-03-11 20:25:40 -0500
commitfb377b9a71dbc0a6d52d61eed4d47f99bb06d584 (patch)
tree14f366336a585782bbaa15b2b6a21b5e2a62923e /src/cursor.c
parent362fdcfc3ed7fd0841c48c2a7b6f3fc3af5d5cdb (diff)
amend that...
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/cursor.c')
-rw-r--r--src/cursor.c2
1 files changed, 1 insertions, 1 deletions
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);