X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=ae653b1c2114540b997a4cb6b708a400c32a13e0;hp=cbece63c43d6bd7ac3938ac8bb3c986323fc99cb;hb=3ed86ed3f95f712587bea62f4a7fc474812db458;hpb=a71209868bdd8361d0607acf7725f70e9d1f2019 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index cbece63c..ae653b1c 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -197,7 +197,7 @@ void Bitboards::init() { for (Color c = WHITE; c <= BLACK; ++c) for (PieceType pt = PAWN; pt <= KING; ++pt) for (Square s = SQ_A1; s <= SQ_H8; ++s) - for (int k = 0; steps[pt][k]; k++) + for (int k = 0; steps[pt][k]; ++k) { Square to = s + Square(c == WHITE ? steps[pt][k] : -steps[pt][k]);