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/moves.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moves.cpp') diff --git a/src/moves.cpp b/src/moves.cpp index 84c5ba4..b07c91b 100644 --- a/src/moves.cpp +++ b/src/moves.cpp @@ -354,8 +354,8 @@ bool IsSquareAttacked(Game *g, Position square, bool white) { } Position IndexToPosition(int i) { - uint8_t rank = i / 8; // 0-7 - uint8_t file = i % 8; // 0-7 + uint8_t rank = static_cast(i / 8); // 0-7 + uint8_t file = static_cast(i % 8); // 0-7 return {rank, file}; } -- cgit v1.2.3