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/bot.cpp | |
| parent | 061f2af803f7abfb4f655ef67769e79db705a3e1 (diff) | |
making stricter cmake list and then fixing bug it found
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(difftime(time(0), start)); if (seconds_since_start >= MAXIMUM_TIME_PER_MOVE && usingDefaultDepth) { continueSearching = false; } |
