summaryrefslogtreecommitdiff
path: root/cursor
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
parent3cc187c73ef73cd345138fd746344299f94933e8 (diff)
cursor: Fix unsigned/signed comparisons
Diffstat (limited to 'cursor')
-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)