mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix undefined behavior
This fixes #892. Undefined behavior as seen with clang -fsanitize=undefined. No functional change.
This commit is contained in:
parent
2ec626ddae
commit
8ceb1ff53b
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ const Piece Pieces[] = { W_PAWN, W_KNIGHT, W_BISHOP, W_ROOK, W_QUEEN, W_KING,
|
|||
B_PAWN, B_KNIGHT, B_BISHOP, B_ROOK, B_QUEEN, B_KING };
|
||||
extern Value PieceValue[PHASE_NB][PIECE_NB];
|
||||
|
||||
enum Depth {
|
||||
enum Depth : int {
|
||||
|
||||
ONE_PLY = 1,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue