X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=3bed69bead7665dc9a51e53f29008d67ab8fda9e;hp=073487e99cf252a02f9ed6656a31578048264279;hb=fd5d6c53402517cf8277641a8e37af153b7540c5;hpb=b706165527b5449fefa20bb31ac66d0274b066ea diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 073487e9..3bed69be 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -325,7 +325,7 @@ namespace { } while (b); offset += maxKey; - booster = MagicBoosters[CpuIs64Bit][square_rank(s)]; + booster = MagicBoosters[CpuIs64Bit][rank_of(s)]; // Then find a possible magic and the corresponding attacks do {