浏览代码

Fixed compilation warning

Paul-Louis Ageneau 5 年之前
父节点
当前提交
0625508348
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {