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/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bot.cpp') diff --git a/src/bot.cpp b/src/bot.cpp index 860bf84..0358241 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -326,7 +326,7 @@ Move GetBestMove(Game *b, const int maxDepth) { if (depth >= actualDepth) { continueSearching = false; } - int seconds_since_start = difftime(time(0), start); + int seconds_since_start = static_cast(difftime(time(0), start)); if (seconds_since_start >= MAXIMUM_TIME_PER_MOVE && usingDefaultDepth) { continueSearching = false; } -- cgit v1.2.3