From a28955e87c887193755f249cc31fc5a59349c8ee Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 25 Jun 2015 15:12:13 +0100 Subject: [PATCH] Attempted fix for building with GCC. --- src/backend/game/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.