diff --git a/src/backend/game/game.cpp b/src/backend/game/game.cpp index 9ef05447..484b5973 100644 --- a/src/backend/game/game.cpp +++ b/src/backend/game/game.cpp @@ -146,7 +146,7 @@ namespace loot { // Get the number of threads to use. // hardware_concurrency() may be zero, if so then use only one thread. - unsigned int threadsToUse = std::min(boost::thread::hardware_concurrency(), plugins.size()); + unsigned int threadsToUse = std::min((size_t)boost::thread::hardware_concurrency(), plugins.size()); threadsToUse = std::max(threadsToUse, (unsigned)1); // Divide the plugins up by thread.