Fixed a few compilation warnings

This commit is contained in:
Benoit Steiner
2015-06-30 10:36:17 -07:00
parent 7d41e97fa9
commit a4aa7c6217
3 changed files with 3 additions and 7 deletions

View File

@@ -380,7 +380,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
EIGEN_DEVICE_FUNC
void resize(const Sizes<Indices...>& dimensions) {
array<Index, NumIndices> dims;
for (int i = 0; i < NumIndices; ++i) {
for (std::size_t i = 0; i < NumIndices; ++i) {
dims[i] = dimensions[i];
}
resize(dims);
@@ -390,7 +390,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
EIGEN_DEVICE_FUNC
void resize(const Sizes<V1, V2, V3, V4, V5>& dimensions) {
array<Index, NumIndices> dims;
for (int i = 0; i < NumIndices; ++i) {
for (std::size_t i = 0; i < NumIndices; ++i) {
dims[i] = dimensions[i];
}
resize(dims);