Commit edf52212 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

Fix some clang integer sign/size mismatch warnings


Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent bbf3c582
...@@ -226,7 +226,7 @@ static Bool ...@@ -226,7 +226,7 @@ static Bool
_XcursorHeckbertMedianCut (const XcursorImage *image, XcursorCoreCursor *core) _XcursorHeckbertMedianCut (const XcursorImage *image, XcursorCoreCursor *core)
{ {
XImage *src_image = core->src_image, *msk_image = core->msk_image; 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 ncolors;
int n; int n;
XcursorPixel *po, *pn, *pc; XcursorPixel *po, *pn, *pc;
...@@ -395,7 +395,7 @@ _XcursorFloydSteinberg (const XcursorImage *image, XcursorCoreCursor *core) ...@@ -395,7 +395,7 @@ _XcursorFloydSteinberg (const XcursorImage *image, XcursorCoreCursor *core)
int *aPicture, *iPicture, *aP, *iP; int *aPicture, *iPicture, *aP, *iP;
XcursorPixel *pixel, p; XcursorPixel *pixel, p;
int aR, iR, aA, iA; int aR, iR, aA, iA;
int npixels = image->width * image->height; unsigned int npixels = image->width * image->height;
int n; int n;
int right = 1; int right = 1;
int belowLeft = image->width - 1; int belowLeft = image->width - 1;
......
...@@ -49,7 +49,7 @@ XcursorLibraryPath (void) ...@@ -49,7 +49,7 @@ XcursorLibraryPath (void)
static void static void
_XcursorAddPathElt (char *path, const char *elt, int len) _XcursorAddPathElt (char *path, const char *elt, int len)
{ {
int pathlen = strlen (path); size_t pathlen = strlen (path);
/* append / if the path doesn't currently have one */ /* append / if the path doesn't currently have one */
if (path[0] == '\0' || path[pathlen - 1] != '/') if (path[0] == '\0' || path[pathlen - 1] != '/')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment