From b2cd5ca396538aaefeddb4c33a96e984983aaa6a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 23 Jun 2017 16:38:24 +0200 Subject: [PATCH] Fix a warning from clang about an implicit conversion xicursorset.c:84:32: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] image = XcursorShapeLoadImage(shape, theme, size); ~~~~~~~~~~~~~~~~~~~~~ ^~~~~ The casting is safe because at that point in the code the value is guaranteed to be non-negative. --- xicursorset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xicursorset.c b/xicursorset.c index 7c18c0f..d45ec5e 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) } } - image = XcursorShapeLoadImage(shape, theme, size); + image = XcursorShapeLoadImage((unsigned int)shape, theme, size); if (image == NULL) { fprintf(stderr, "Can't get cursor image, check or .\n"); return EXIT_FAILURE; -- 2.1.4