X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=bfacc4121a0312b2d2461239008344c940c3857f;hp=6df2efe55b801a2a36743e410e117933b0bf59aa;hb=2f92e3b5251e8da1c573a9860b8f42afca4f9366;hpb=de2ba70830b0540311fd1e33994a135edaffdb88 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 6df2efe5..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 & (file | rank) ? "| X " : "| "); + for (File f = FILE_A; f <= FILE_H; ++f) + s.append(b & make_square(f, r) ? "| X " : "| "); s.append("|\n+---+---+---+---+---+---+---+---+\n"); }