X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=b3aeed854b70ce656fda25215c213967b3b6ddcc;hp=994ee17f26fa8b078e636f0378ec6ad44fe43e70;hb=a05793517f9c1e4483df7928473a1ff3a2a8d640;hpb=edf4c07d251f1d6c709d47969bfe1452194d9430 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 994ee17f..b3aeed85 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -89,7 +89,7 @@ void Bitboards::init() { PopCnt16[i] = (uint8_t) popcount16(i); for (Square s = SQ_A1; s <= SQ_H8; ++s) - SquareBB[s] = 1ULL << s; + SquareBB[s] = (1ULL << s); for (File f = FILE_A; f <= FILE_H; ++f) FileBB[f] = f > FILE_A ? FileBB[f - 1] << 1 : FileABB; @@ -137,7 +137,7 @@ void Bitboards::init() { } } - Direction RookDirections[] = { NORTH, EAST, SOUTH, WEST }; + Direction RookDirections[] = { NORTH, EAST, SOUTH, WEST }; Direction BishopDirections[] = { NORTH_EAST, SOUTH_EAST, SOUTH_WEST, NORTH_WEST }; init_magics(RookTable, RookMagics, RookDirections);