Avoid implicit cast

This commit is contained in:
Benoit Steiner 2016-03-09 17:35:17 -08:00
parent b2100b83ad
commit 3149b5b148

View File

@ -298,7 +298,7 @@ struct FullReducer<Self, Op, ThreadPoolDevice, true> {
*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<Self, Op, true>::reduce(self, 0, num_coeffs, reducer);
return;