# HG changeset patch # User ramiro # Date 1276108250 0 # Node ID 823d95e424025c777288452e78b22635169fbc53 # Parent 41b43a526d0d568c542b50adfc2e37acb0b9011c log.c: Use parameter passed to macro instead of the equivalent local variable in the only function that uses the macro. diff -r 41b43a526d0d -r 823d95e42402 log.c --- a/log.c Wed Jun 09 18:13:01 2010 +0000 +++ b/log.c Wed Jun 09 18:30:50 2010 +0000 @@ -39,7 +39,7 @@ static const uint8_t color[] = {12,12,12,14,7,7,7}; static int16_t background, attr_orig; static HANDLE con; -#define set_color(x) SetConsoleTextAttribute(con, background | color[level]) +#define set_color(x) SetConsoleTextAttribute(con, background | color[x]) #define reset_color() SetConsoleTextAttribute(con, attr_orig) #else static const uint8_t color[]={0x41,0x41,0x11,0x03,9,9,9};