Avoid unecessary type conversions

This commit is contained in:
Benoit Steiner 2016-02-05 18:19:41 -08:00
parent d2cba52015
commit 4d4211c04e
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
}
for (size_t i = 0; i < m_fft.size(); ++i) {
int dim = m_fft[i];
Index dim = m_fft[i];
eigen_assert(dim >= 0 && dim < NumDims);
Index line_len = m_dimensions[dim];
eigen_assert(line_len >= 1);

View File

@ -192,7 +192,7 @@ static void test_fft_real_input_energy() {
input.resize(arr);
input.setRandom();
array<int, TensorRank> fft;
array<ptrdiff_t, TensorRank> fft;
for (int i = 0; i < TensorRank; ++i) {
fft[i] = i;
}