Attempted fix for building with GCC.

This commit is contained in:
Oliver Hamlet
2015-06-25 15:12:13 +01:00
parent 7c45b9bc8d
commit a28955e87c
+1 -1
View File
@@ -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.