summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);