]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.h
Pawn endgames directly skip early pruning.
[stockfish] / src / bitboard.h
index 05f65931cb3e20bfbc810e9272f51816c9f6109e..87628c0ce7b483c5f4cf9e75732aa40917a9e117 100644 (file)
@@ -152,7 +152,7 @@ inline Bitboard file_bb(Square s) {
 
 /// shift() moves a bitboard one step along direction D. Mainly for pawns
 
-template<Square D>
+template<Direction D>
 constexpr Bitboard shift(Bitboard b) {
   return  D == NORTH      ?  b             << 8 : D == SOUTH      ?  b             >> 8
         : D == NORTH_EAST ? (b & ~FileHBB) << 9 : D == SOUTH_EAST ? (b & ~FileHBB) >> 7