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/uci.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/uci.cpp') diff --git a/src/uci.cpp b/src/uci.cpp index 33289b0..d9972b2 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -41,11 +41,11 @@ Move UciToMove(string uci) { Position from; Position to; - from.file = uci[0] - 'a'; - from.rank = '8' - uci[1]; + from.file = static_cast(uci[0] - 'a'); + from.rank = static_cast('8' - uci[1]); - to.file = uci[2] - 'a'; - to.rank = '8' - uci[3]; + to.file = static_cast(uci[2] - 'a'); + to.rank = static_cast('8' - uci[3]); return {from, to}; } @@ -133,8 +133,8 @@ void Uci() { Move best = GetBestMove(&game, depth); cout << "bestmove "; - cout << (char)(best.From.file + 'a') << 8 - best.From.rank - << (char)(best.To.file + 'a') << 8 - best.To.rank; + cout << static_cast(best.From.file + 'a') << 8 - best.From.rank + << static_cast(best.To.file + 'a') << 8 - best.To.rank; if (best.promotion != NONEPIECE) { switch (best.promotion) { @@ -206,7 +206,7 @@ void Uci() { cout.flush(); continue; } - int count = MoveGenTest(depth, &game); + uint64_t count = MoveGenTest(depth, &game); cout << count << "\n"; cout.flush(); -- cgit v1.2.3