Minor clean up of some function parameters

No function change

Resolves #416
This commit is contained in:
mstembera
2015-09-07 20:17:39 +01:00
committed by Joona Kiiski
parent 46b5a5f0db
commit 3e2591d83c
3 changed files with 5 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ const string PieceToChar(" PNBRQK pnbrqk");
// from the bitboards and scan for new X-ray attacks behind it.
template<int Pt>
PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers,
PieceType min_attacker(const Bitboard* bb, Square to, Bitboard stmAttackers,
Bitboard& occupied, Bitboard& attackers) {
Bitboard b = stmAttackers & bb[Pt];
@@ -77,7 +77,7 @@ PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stm
}
template<>
PieceType min_attacker<KING>(const Bitboard*, const Square&, const Bitboard&, Bitboard&, Bitboard&) {
PieceType min_attacker<KING>(const Bitboard*, Square, Bitboard, Bitboard&, Bitboard&) {
return KING; // No need to update bitboards: it is the last cycle
}