Fixed several compilation warnings

This commit is contained in:
Benoit Steiner
2016-04-21 11:03:02 -07:00
parent 6015422ee6
commit f670613e4b
3 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ class TensorExecutor<Expression, ThreadPoolDevice, Vectorizable> {
{
const Index PacketSize = Vectorizable ? unpacket_traits<typename Evaluator::PacketReturnType>::size : 1;
const Index size = array_prod(evaluator.dimensions());
int num_threads = device.numThreads();
size_t num_threads = device.numThreads();
#ifdef EIGEN_USE_COST_MODEL
if (num_threads > 1) {
num_threads = TensorCostModel<ThreadPoolDevice>::numThreads(

View File

@@ -168,7 +168,7 @@ class RunQueue {
// larger than it is during concurrent modifications. E.g. pop can
// decrement size before the corresponding push has incremented it.
// So the computed size can be up to kSize + 1, fix it.
if (size > kSize) size = kSize;
if (size > static_cast<int>(kSize)) size = kSize;
return size;
}
}