X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=cc039397e3330728022f22c2905891a20849a343;hp=59b30a7f009204bb06b9b258a050797d96a362c0;hb=2f47844c7cb34c7de5b5d41cda10b7d8736a20bc;hpb=b9bc6e823f061753419e563c4f923e60bd8c6193 diff --git a/src/bitboard.h b/src/bitboard.h index 59b30a7f..cc039397 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -216,8 +216,7 @@ FORCE_INLINE unsigned magic_index(Square s, Bitboard occ) { template inline Bitboard attacks_bb(Square s, Bitboard occ) { - Bitboard** const Attacks = Pt == ROOK ? RAttacks : BAttacks; - return Attacks[s][magic_index(s, occ)]; + return (Pt == ROOK ? RAttacks : BAttacks)[s][magic_index(s, occ)]; }