From 92d6c14c8dfd7b4978deca602d51d3afbbfdcfe7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 29 May 2013 11:40:28 +0100 Subject: [PATCH] remove ambiguity in subtraction and masking --- desktop/system_colour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/system_colour.c b/desktop/system_colour.c index 0944407b6..7b4fded38 100644 --- a/desktop/system_colour.c +++ b/desktop/system_colour.c @@ -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) {