# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1311654546 0 # Node ID bf932c9316ff27cac0ed3e8ef7bf5578c88a9879 # Parent cfe7d2b6bc16523186d159eeb09c41257e9b92fa Minor change to the DW_RGB() macro to avoid compiler warnings under certain circumstances. diff -r cfe7d2b6bc16 -r bf932c9316ff dw.h --- a/dw.h Tue Jul 26 03:09:41 2011 +0000 +++ b/dw.h Tue Jul 26 04:29:06 2011 +0000 @@ -1377,7 +1377,7 @@ #define DW_RED_VALUE(a) (a & DW_RED_MASK) #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) -#define DW_RGB(a, b, c) (0xF0000000 | a | b << 8 | c << 16) +#define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16) #endif #define DW_MENU_SEPARATOR ""