1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Mark square_bb() as constexpr

closes https://github.com/official-stockfish/Stockfish/pull/4949

No functional change
This commit is contained in:
FauziAkram 2023-12-31 03:43:19 +03:00 committed by Disservin
parent 1fe562fdf3
commit 4ff297a6df

View file

@ -89,7 +89,7 @@ struct Magic {
extern Magic RookMagics[SQUARE_NB];
extern Magic BishopMagics[SQUARE_NB];
inline Bitboard square_bb(Square s) {
constexpr Bitboard square_bb(Square s) {
assert(is_ok(s));
return (1ULL << s);
}