X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=573b5df59a7885071a73855d9a0ff49739f0227b;hp=5a98821d493dde10d9fe2bd020ba17467c1d7ea5;hb=6c040c821a50475840607ef5f11c270ee21d61da;hpb=20e92895af45ec9599110506eea231fc689c05ba diff --git a/src/position.cpp b/src/position.cpp index 5a98821d..573b5df5 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -58,7 +58,7 @@ Score psq[COLOR_NB][PIECE_TYPE_NB][SQUARE_NB]; // valuable attacker for the side to move, remove the attacker we just found // from the bitboards and scan for new X-ray attacks behind it. -template FORCE_INLINE +template PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers, Bitboard& occupied, Bitboard& attackers) { @@ -78,7 +78,7 @@ PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stm return (PieceType)Pt; } -template<> FORCE_INLINE +template<> PieceType min_attacker(const Bitboard*, const Square&, const Bitboard&, Bitboard&, Bitboard&) { return KING; // No need to update bitboards: it is the last cycle }