Browse Source

Fixed compilation warning

Paul-Louis Ageneau 5 năm trước cách đây
mục cha
commit
0625508348
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/threadpool.cpp

+ 1 - 1
src/threadpool.cpp

@@ -29,7 +29,7 @@ ThreadPool::~ThreadPool() { join(); }
 
 int ThreadPool::count() const {
 	std::unique_lock lock(mWorkersMutex);
-	return mWorkers.size();
+	return int(mWorkers.size());
 }
 
 void ThreadPool::spawn(int count) {