diff -ur ncurses-5.9/include/curses.h.in src/ncurses-5.9-dank/include/curses.h.in --- ncurses-5.9/include/curses.h.in 2011-04-05 14:31:12.000000000 -0400 +++ src/ncurses-5.9-dank/include/curses.h.in 2012-07-25 23:54:40.178764847 -0400 @@ -1154,8 +1154,8 @@ /* * These apply to the first 256 color pairs. */ -#define COLOR_PAIR(n) NCURSES_BITS(n, 0) -#define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,a) & A_COLOR) >> NCURSES_ATTR_SHIFT))) +#define COLOR_PAIR(n) NCURSES_BITS((n), 0) +#define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,(a)) & A_COLOR) >> NCURSES_ATTR_SHIFT))) /* * pseudo functions for standard screen