From f05fb449b845c5246da6817bb5300030b852318f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 9 Mar 2016 15:27:45 -0800 Subject: [PATCH] Avoid unnecessary conversion from 32bit int to 64bit unsigned int --- unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h index 2d7fb80d4..3f1864fa7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h @@ -247,7 +247,7 @@ struct FullReducer { *output = reducer.finalize(reducer.initialize()); return; } - const int num_threads = device.numThreads(); + const std::size_t num_threads = device.numThreads(); if (num_threads == 1) { *output = InnerMostDimReducer::reduce(self, 0, num_coeffs, reducer); return;