diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 15:42:25 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 15:42:25 -0700 |
commit | 6021b68d8bfa7a6e1e2fe6cc275054b8278a347e (patch) | |
tree | 31d099d9d025e176dcfe523e37da20f6bdbdccd9 /unsupported/Eigen | |
parent | f1f480b116913b9c90fce0626f1643eb9f021003 (diff) |
Silenced a compilation warning
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/Tensor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h index bd83c7c5c..32936d4be 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h @@ -381,7 +381,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp void resize(const Sizes<Indices...>& dimensions) { array<Index, NumIndices> dims; for (std::size_t i = 0; i < NumIndices; ++i) { - dims[i] = dimensions[i]; + dims[i] = static_cast<Index>(dimensions[i]); } resize(dims); } @@ -391,7 +391,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp void resize(const Sizes<V1, V2, V3, V4, V5>& dimensions) { array<Index, NumIndices> dims; for (std::size_t i = 0; i < NumIndices; ++i) { - dims[i] = dimensions[i]; + dims[i] = static_cast<Index>(dimensions[i]); } resize(dims); } |