X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=52bc9f88eea5eb031931cfe1aa17dce81fde575e;hp=b3c65a0f166268200fb918d4a751f2563f7de378;hb=c2c185423b13b0227c86009c6006e48e8d258896;hpb=25b4d0c127af9fe564f7a797460bed4c2837bcc2 diff --git a/src/pawns.cpp b/src/pawns.cpp index b3c65a0f..52bc9f88 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -132,8 +132,8 @@ Score PawnInfoTable::evaluate_pawns(const Position& pos, Bitboard ourPawns, { assert(pos.piece_on(s) == make_piece(Us, PAWN)); - f = square_file(s); - r = square_rank(s); + f = file_of(s); + r = rank_of(s); // This file cannot be half open pi->halfOpenFiles[Us] &= ~(1 << f);