Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xorg
lib
libXcursor
Commits
edf52212
Commit
edf52212
authored
Oct 18, 2014
by
Alan Coopersmith
Browse files
Fix some clang integer sign/size mismatch warnings
Signed-off-by:
Alan Coopersmith
<
alan.coopersmith@oracle.com
>
parent
bbf3c582
Changes
2
Show whitespace changes
Inline
Side-by-side
src/cursor.c
View file @
edf52212
...
@@ -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
;
...
...
src/library.c
View file @
edf52212
...
@@ -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
]
!=
'/'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment