summaryrefslogtreecommitdiff
path: root/src/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cursor.c')
-rw-r--r--src/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cursor.c b/src/cursor.c
index 92bd417..23c3283 100644
--- a/src/cursor.c
+++ b/src/cursor.c
@@ -226,7 +226,7 @@ static Bool
_XcursorHeckbertMedianCut (const XcursorImage *image, XcursorCoreCursor *core)
{
XImage *src_image = core->src_image, *msk_image = core->msk_image;
- int npixels = image->width * image->height;
+ unsigned int npixels = image->width * image->height;
int ncolors;
int n;
XcursorPixel *po, *pn, *pc;
@@ -395,7 +395,7 @@ _XcursorFloydSteinberg (const XcursorImage *image, XcursorCoreCursor *core)
int *aPicture, *iPicture, *aP, *iP;
XcursorPixel *pixel, p;
int aR, iR, aA, iA;
- int npixels = image->width * image->height;
+ unsigned int npixels = image->width * image->height;
int n;
int right = 1;
int belowLeft = image->width - 1;