X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=8beff88859befca7a48424199000bf439740ff1f;hp=ca17f6ac8fcccb2672dcc932e4dbb46f60b048f5;hb=822695d4d3a9336dc54bfabd0996e75865358ae2;hpb=2acda1fde3e1542a0b1bfc5a0885559e6daf142a diff --git a/src/endgame.cpp b/src/endgame.cpp index ca17f6ac..8beff888 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -524,7 +524,7 @@ ScaleFactor Endgame::operator()(const Position& pos) const { Square bsq = pos.square(weakSide); Square psq = pos.square(strongSide); Rank rk = relative_rank(strongSide, psq); - Square push = pawn_push(strongSide); + Direction push = pawn_push(strongSide); // If the pawn is on the 5th rank and the pawn (currently) is on // the same color square as the bishop then there is a chance of