aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-04-19 12:38:00 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-04-19 12:38:00 -0700
commit70bc3b0668f8c2d04ab4347c6b58fca88f4a5b0e (patch)
treef0ae6b95d83baaf9a7c0c4d57868b7db9a0ea960 /unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
parent3220eb2b93f95e7ebce01141a31196176500c618 (diff)
Silenced a warning in the tensor code
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorRef.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorRef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
index acdbc181d..fba7b20a9 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
@@ -295,7 +295,7 @@ template<typename PlainObjectType> class TensorRef : public TensorBase<TensorRef
Index index = 0;
if (PlainObjectType::Options & RowMajor) {
index += indices[0];
- for (int i = 1; i < NumIndices; ++i) {
+ for (size_t i = 1; i < NumIndices; ++i) {
index = index * dims[i] + indices[i];
}
} else {
@@ -313,7 +313,7 @@ template<typename PlainObjectType> class TensorRef : public TensorBase<TensorRef
Index index = 0;
if (PlainObjectType::Options & RowMajor) {
index += indices[0];
- for (int i = 1; i < NumIndices; ++i) {
+ for (size_t i = 1; i < NumIndices; ++i) {
index = index * dims[i] + indices[i];
}
} else {