mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
A small clean up of previous patch suggested by Marco
No functional change
This commit is contained in:
@@ -500,9 +500,9 @@ namespace {
|
||||
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
|
||||
|
||||
PieceType pt;
|
||||
for (pt = QUEEN; pt >= KNIGHT; --pt)
|
||||
for (pt = QUEEN; pt > PAWN; --pt)
|
||||
if (target & pos.pieces(C, pt))
|
||||
break;
|
||||
return pt;
|
||||
|
||||
return pt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user