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 c248eec..490ca20 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--)
+ while (n-- >= 0)
{
p = *pixel++;
*aP++ = (int) (p >> 24);