diff options
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; } |
