From 4ff297a6dfae199571a4f24631a8e970924c8d63 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 31 Dec 2023 03:43:19 +0300 Subject: [PATCH] Mark square_bb() as constexpr closes https://github.com/official-stockfish/Stockfish/pull/4949 No functional change --- src/bitboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitboard.h b/src/bitboard.h index 7dbd5329..8b9c2918 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -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); }