Skip to content

Commit

Permalink
Mark square_bb() as constexpr
Browse files Browse the repository at this point in the history
closes #4949

No functional change
  • Loading branch information
FauziAkram authored and Disservin committed Dec 31, 2023
1 parent 1fe562f commit 4ff297a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4ff297a

Please sign in to comment.