X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=bfacc4121a0312b2d2461239008344c940c3857f;hp=d4b8bcfdf2cabb53d59e20ff8a055688db6a54a8;hb=ce6b7a1b859ab1b416e6df5bddfc942c9c2f9ae7;hpb=bc183b0c04e25cdc907ffe1376de9bc1cded027a diff --git a/src/bitboard.cpp b/src/bitboard.cpp index d4b8bcfd..bfacc412 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -131,10 +131,10 @@ const std::string Bitboards::pretty(Bitboard b) { std::string s = "+---+---+---+---+---+---+---+---+\n"; - for (Rank rank = RANK_8; rank >= RANK_1; --rank) + for (Rank r = RANK_8; r >= RANK_1; --r) { - for (File file = FILE_A; file <= FILE_H; ++file) - s.append(b & make_square(file, rank) ? "| X " : "| "); + for (File f = FILE_A; f <= FILE_H; ++f) + s.append(b & make_square(f, r) ? "| X " : "| "); s.append("|\n+---+---+---+---+---+---+---+---+\n"); }