mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Attempted fix for building with GCC.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user