mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
cursor: Fix unsigned/signed comparisons
This commit is contained in:
parent
3cc187c73e
commit
5030af7635
1 changed files with 3 additions and 3 deletions
|
|
@ -313,7 +313,7 @@ _XcursorReadFileHeader (XcursorFile *file)
|
||||||
{
|
{
|
||||||
XcursorFileHeader head, *fileHeader;
|
XcursorFileHeader head, *fileHeader;
|
||||||
XcursorUInt skip;
|
XcursorUInt skip;
|
||||||
int n;
|
unsigned int n;
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -399,7 +399,7 @@ _XcursorFindBestSize (XcursorFileHeader *fileHeader,
|
||||||
XcursorDim size,
|
XcursorDim size,
|
||||||
int *nsizesp)
|
int *nsizesp)
|
||||||
{
|
{
|
||||||
int n;
|
unsigned int n;
|
||||||
int nsizes = 0;
|
int nsizes = 0;
|
||||||
XcursorDim bestSize = 0;
|
XcursorDim bestSize = 0;
|
||||||
XcursorDim thisSize;
|
XcursorDim thisSize;
|
||||||
|
|
@ -429,7 +429,7 @@ _XcursorFindImageToc (XcursorFileHeader *fileHeader,
|
||||||
XcursorDim size,
|
XcursorDim size,
|
||||||
int count)
|
int count)
|
||||||
{
|
{
|
||||||
int toc;
|
unsigned int toc;
|
||||||
XcursorDim thisSize;
|
XcursorDim thisSize;
|
||||||
|
|
||||||
if (!fileHeader)
|
if (!fileHeader)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue