- back = (i & 1) ? (A_BOLD | 'B' | COLOR_PAIR(1)) : ' ';
- set = (i & 2) ? (A_REVERSE | COLOR_PAIR(2)) : 0;
- attr = (chtype) ((i & 4) ? COLOR_PAIR(4) : 0);
+ back = (i & 1) ? (A_BOLD | 'B' | (chtype) COLOR_PAIR(1)) : ' ';
+ set = (i & 2) ? (A_REVERSE | (chtype) COLOR_PAIR(2)) : 0;
+ attr = (chtype) ((i & 4) ? (chtype) COLOR_PAIR(4) : 0);