X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fresources.c;h=f02ab91f77ec9614d6808af1b6f4bca00581ff43;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=19b2cb6ccf8149d1750f2ad41272e3fa488a15c3;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/utils/resources.c b/utils/resources.c index 19b2cb6c..f02ab91f 100644 --- a/utils/resources.c +++ b/utils/resources.c @@ -172,7 +172,7 @@ get_pixel_resource (Display *dpy, Colormap cmap, goto DEFAULT; } free (s); - return color.pixel; + return (unsigned int) color.pixel; DEFAULT: if (s) free (s); @@ -185,7 +185,7 @@ get_pixel_resource (Display *dpy, Colormap cmap, color.flags = DoRed|DoGreen|DoBlue; color.red = color.green = color.blue = (black_p ? 0 : 0xFFFF); if (XAllocColor (dpy, cmap, &color)) - return color.pixel; + return (unsigned int) color.pixel; else { fprintf (stderr, "%s: couldn't allocate %s either!\n", progname,