X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=libi3%2Fget_colorpixel.c;h=49a9e3b40c3486e269bc565f8f1b7c2dec6f732a;hp=afba202b276886c950b5b6c20f1677a00a2c3e69;hb=7c0994dafc91944477e03700304b2308b0e3fdb1;hpb=dfe89cc4f1706a6fae0ae3816787d0fb22dadd7d diff --git a/libi3/get_colorpixel.c b/libi3/get_colorpixel.c index afba202b..49a9e3b4 100644 --- a/libi3/get_colorpixel.c +++ b/libi3/get_colorpixel.c @@ -43,7 +43,7 @@ uint32_t get_colorpixel(const char *hex) { /* Shortcut: if our screen is true color, no need to do a roundtrip to X11 */ if (root_screen == NULL || root_screen->root_depth == 24 || root_screen->root_depth == 32) { - return (0xFF << 24) | (r << 16 | g << 8 | b); + return (0xFFUL << 24) | (r << 16 | g << 8 | b); } /* Lookup this colorpixel in the cache */