summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7d42752)
No functional change.
Resolves #81
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
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;
if (target & pos.pieces(C, pt))
return pt;