From 1ae2567861e71ca132b7c46ace8f30b3e7e9b0c6 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 26 May 2016 15:57:19 -0700 Subject: [PATCH] Fixed some compilation warnings --- .../Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h | 2 +- .../Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h index f3f65f908..a60a17049 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h @@ -625,7 +625,7 @@ struct TensorEvaluatorrand); unsigned inc = coprimes_[r % coprimes_.size()]; unsigned victim = r % size; @@ -219,7 +219,7 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface { int NonEmptyQueueIndex() { PerThread* pt = GetPerThread(); - unsigned size = queues_.size(); + const size_t size = queues_.size(); unsigned r = Rand(&pt->rand); unsigned inc = coprimes_[r % coprimes_.size()]; unsigned victim = r % size; @@ -240,7 +240,7 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface { PerThread* pt = &per_thread_; if (pt->inited) return pt; pt->inited = true; - pt->rand = std::hash()(std::this_thread::get_id()); + pt->rand = static_cast(std::hash()(std::this_thread::get_id())); return pt; }