Small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/2546

No functional change.
This commit is contained in:
Joost VandeVondele
2020-03-01 09:31:17 +01:00
parent f27339d35b
commit c6839a2615
8 changed files with 37 additions and 41 deletions

View File

@@ -281,7 +281,7 @@ Value Endgame<KQKP>::operator()(const Position& pos) const {
if ( relative_rank(weakSide, pawnSq) != RANK_7
|| distance(loserKSq, pawnSq) != 1
|| !((FileABB | FileCBB | FileFBB | FileHBB) & pawnSq))
|| ((FileBBB | FileDBB | FileEBB | FileGBB) & pawnSq))
result += QueenValueEg - PawnValueEg;
return strongSide == pos.side_to_move() ? result : -result;