Minor stuff scattered around

Just random minor stuff I found while browsing the code.

No functional change.
This commit is contained in:
mstembera
2014-04-28 01:30:06 -07:00
committed by Marco Costalba
parent a1f39c1ef9
commit 918c29f83a
3 changed files with 8 additions and 19 deletions

View File

@@ -368,7 +368,7 @@ ExtMove* generate<EVASIONS>(const Position& pos, ExtMove* mlist) {
Color us = pos.side_to_move();
Square ksq = pos.king_square(us);
Bitboard sliderAttacks = 0;
Bitboard sliders = pos.checkers() & ~pos.pieces(KNIGHT) & ~pos.pieces(PAWN);
Bitboard sliders = pos.checkers() & ~pos.pieces(KNIGHT, PAWN);
// Find all the squares attacked by slider checkers. We will remove them from
// the king evasions in order to skip known illegal moves, which avoids any