Silence compiler warning.

This commit is contained in:
Rasmus Munk Larsen 2018-09-19 13:27:55 -07:00
parent db9c9df59a
commit d638b62dda

View File

@ -85,8 +85,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface {
}
void SetStealPartitions(const std::vector<std::pair<unsigned, unsigned>>& partitions) {
int num_partitions = partitions.size();
eigen_assert(num_partitions == num_threads_);
eigen_assert(static_cast<int>(partitions.size()) == num_threads_);
// Pass this information to each thread queue.
for (int i = 0; i < num_threads_; i++) {