From ee7815bad917cf880c147186a01679fb7ce46a8e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 31 Jul 2026 20:11:01 +0200 Subject: making stricter cmake list and then fixing bug it found --- src/board/board.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/board/board.cpp') diff --git a/src/board/board.cpp b/src/board/board.cpp index 8c8e423..af313d0 100644 --- a/src/board/board.cpp +++ b/src/board/board.cpp @@ -82,11 +82,11 @@ UndoMove MakeMove(Move move, Game *g) { // Adding enpassant if (piece.type == PAWN) { Position to = move.To; - to.rank -= (piece.color ? -2 : 2); + to.rank -= static_cast(piece.color ? -2 : 2); if (to == move.From) { g->canEnpassant = true; Position target = move.From; - target.rank += piece.color ? -1 : 1; + target.rank += static_cast(piece.color ? -1 : 1); g->enPassant = target; }; } -- cgit v1.2.3