X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=cc039397e3330728022f22c2905891a20849a343;hp=59b30a7f009204bb06b9b258a050797d96a362c0;hb=0ecc920a09f479cb9b568716597e0756da557174;hpb=f59323b56a0920676c2589a36356a44fc42c8f40 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)]; }