mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 23:35:45 +00:00
Compare indices not index with pair
Fixes always true condition. Found by LGTM.com
This commit is contained in:
parent
bbac4c2a62
commit
ec0f5d0ba9
2
CRT.c
2
CRT.c
@ -794,7 +794,7 @@ void CRT_setColors(int colorScheme) {
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
for (int j = 0; j < 8; j++) {
|
||||
if (ColorIndex(i, j) != ColorPairGrayBlack) {
|
||||
if (ColorIndex(i, j) != ColorIndexGrayBlack) {
|
||||
int bg = (colorScheme != COLORSCHEME_BLACKNIGHT)
|
||||
? (j == 0 ? -1 : j)
|
||||
: j;
|
||||
|
Loading…
Reference in New Issue
Block a user