Skip to content

Commit 360b544

Browse files
committed
Solve compile warning on Raspberry Pi
1 parent d1fb7bc commit 360b544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kpk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ int kpkSelfCheck(void)
177177
continue;
178178
counts[0] -= !bInCheck(wK, wP, bK);
179179
counts[1] -= !wInCheck(wK, wP, bK);
180-
counts[2] -= !bInCheck(wK, wP, bK) & (kpkTable[white][ix] >> bK);
181-
counts[3] -= !wInCheck(wK, wP, bK) & (kpkTable[black][ix] >> bK);
180+
counts[2] -= !bInCheck(wK, wP, bK) && ((kpkTable[white][ix] >> bK) & 1);
181+
counts[3] -= !wInCheck(wK, wP, bK) && ((kpkTable[black][ix] >> bK) & 1);
182182
}
183183
}
184184
return !counts[0] && !counts[1] && !counts[2] && !counts[3];

0 commit comments

Comments
 (0)