diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-31 20:11:01 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-31 20:11:01 +0200 |
| commit | ee7815bad917cf880c147186a01679fb7ce46a8e (patch) | |
| tree | b645ea43ae002c1cc6cca37106b665390358f1b5 /src/board/board.cpp | |
| parent | 061f2af803f7abfb4f655ef67769e79db705a3e1 (diff) | |
making stricter cmake list and then fixing bug it found
Diffstat (limited to 'src/board/board.cpp')
| -rw-r--r-- | src/board/board.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint8_t>(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<uint8_t>(piece.color ? -1 : 1); g->enPassant = target; }; } |
