mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix static_assert.
With a hard-coded true, this declaration has no effect. closes https://github.com/official-stockfish/Stockfish/pull/3295 No functional change.
This commit is contained in:
parent
87586b3d0c
commit
0266e70297
1 changed files with 3 additions and 2 deletions
|
@ -204,6 +204,9 @@ namespace {
|
||||||
|
|
||||||
template<Color Us, GenType Type>
|
template<Color Us, GenType Type>
|
||||||
ExtMove* generate_all(const Position& pos, ExtMove* moveList) {
|
ExtMove* generate_all(const Position& pos, ExtMove* moveList) {
|
||||||
|
|
||||||
|
static_assert(Type != LEGAL, "Unsupported type in generate_all()");
|
||||||
|
|
||||||
constexpr bool Checks = Type == QUIET_CHECKS; // Reduce template instantations
|
constexpr bool Checks = Type == QUIET_CHECKS; // Reduce template instantations
|
||||||
Bitboard target, piecesToMove = pos.pieces(Us);
|
Bitboard target, piecesToMove = pos.pieces(Us);
|
||||||
|
|
||||||
|
@ -228,8 +231,6 @@ namespace {
|
||||||
case NON_EVASIONS:
|
case NON_EVASIONS:
|
||||||
target = ~pos.pieces(Us);
|
target = ~pos.pieces(Us);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
static_assert(true, "Unsupported type in generate_all()");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
moveList = generate_pawn_moves<Us, Type>(pos, moveList, target);
|
moveList = generate_pawn_moves<Us, Type>(pos, moveList, target);
|
||||||
|
|
Loading…
Add table
Reference in a new issue