]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Fix undefined behavior
[stockfish] / src / types.h
index 519f6af87f28f61c81bf232e79074d74eabee424..a95420cad99bdff8363572d17b752f967b019638 100644 (file)
@@ -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,