remove ambiguity in subtraction and masking

This commit is contained in:
Vincent Sanders 2013-05-29 11:40:28 +01:00
parent 44badddbdf
commit 92d6c14c8d

View File

@ -82,7 +82,7 @@ colour gui_system_colour_char(const char *name)
return ret;
}
#define ns_color_to_nscss(c) (((0xff - ((c) >> 24) & 0xff) << 24) | ((c) & 0xFF00) | (((c) >> 16) & 0xFF) | (((c) & 0xFF) << 16))
#define ns_color_to_nscss(c) (((0xff - (((c) >> 24) & 0xff)) << 24) | ((c) & 0xFF00) | (((c) >> 16) & 0xFF) | (((c) & 0xFF) << 16))
css_error gui_system_colour(void *pw, lwc_string *name, css_color *colour)
{