X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.cpp;h=fd0ba235cb471f70853b76723564cb69c4f17bea;hb=ad926d34c0105d523bfa5cb92cbcf9f337d54c08;hp=2da4d728ee78016bd31dab1c8401ce7c0b646595;hpb=50890616591443ab06faa0927747bf14c8d450e3;p=stockfish diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 2da4d728..fd0ba235 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -1,6 +1,6 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file) + Copyright (C) 2004-2022 The Stockfish developers (see AUTHORS file) Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -130,7 +130,7 @@ namespace { for (Direction d : (pt == ROOK ? RookDirections : BishopDirections)) { Square s = sq; - while(safe_destination(s, d) && !(occupied & s)) + while (safe_destination(s, d) && !(occupied & s)) attacks |= (s += d); }