From: Antonio Ospite Date: Fri, 23 Jun 2017 14:38:24 +0000 (+0200) Subject: Fix a warning from clang about an implicit conversion X-Git-Url: https://git.ao2.it/xicursorset.git/commitdiff_plain/b2cd5ca396538aaefeddb4c33a96e984983aaa6a 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. --- 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;