1
0
Fork 0

max_piece_type cleanup, and slight speed increase.

No functional change.

Resolves #81
pull/81/merge
mstembera 2014-10-28 22:23:01 +08:00 committed by Gary Linscott
parent 7d42752158
commit 5605cc7684
1 changed files with 2 additions and 3 deletions

View File

@ -499,12 +499,11 @@ namespace {
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
PieceType pt;
for (pt = QUEEN; pt > PAWN; --pt)
for (PieceType pt = QUEEN; pt > PAWN; --pt)
if (target & pos.pieces(C, pt))
return pt;
return pt;
return PAWN;
}