summaryrefslogtreecommitdiffstats
path: root/cursor/xcursor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-22 22:41:21 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-22 22:41:21 -0400
commit5030af7635fc24b325a22d823ab0f51a4b099762 (patch)
tree62805fc93518f41db9b76d21837ef87cfe7f8f15 /cursor/xcursor.c
parentshm: Zero busy count for allocated buffers (diff)
downloadwayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar.gz
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar.bz2
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar.lz
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar.xz
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.tar.zst
wayland-5030af7635fc24b325a22d823ab0f51a4b099762.zip
cursor: Fix unsigned/signed comparisons
Diffstat (limited to 'cursor/xcursor.c')
-rw-r--r--cursor/xcursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c
index 9bec8c7..8b1199f 100644
--- a/cursor/xcursor.c
+++ b/cursor/xcursor.c
@@ -313,7 +313,7 @@ _XcursorReadFileHeader (XcursorFile *file)
{
XcursorFileHeader head, *fileHeader;
XcursorUInt skip;
- int n;
+ unsigned int n;
if (!file)
return NULL;
@@ -399,7 +399,7 @@ _XcursorFindBestSize (XcursorFileHeader *fileHeader,
XcursorDim size,
int *nsizesp)
{
- int n;
+ unsigned int n;
int nsizes = 0;
XcursorDim bestSize = 0;
XcursorDim thisSize;
@@ -429,7 +429,7 @@ _XcursorFindImageToc (XcursorFileHeader *fileHeader,
XcursorDim size,
int count)
{
- int toc;
+ unsigned int toc;
XcursorDim thisSize;
if (!fileHeader)