From 6021b68d8bfa7a6e1e2fe6cc275054b8278a347e Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 30 Jun 2015 15:42:25 -0700 Subject: [PATCH] Silenced a compilation warning --- unsupported/Eigen/CXX11/src/Tensor/Tensor.h | 4 ++-- 1 file 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& dimensions) { array dims; for (std::size_t i = 0; i < NumIndices; ++i) { - dims[i] = dimensions[i]; + dims[i] = static_cast(dimensions[i]); } resize(dims); } @@ -391,7 +391,7 @@ class Tensor : public TensorBase& dimensions) { array dims; for (std::size_t i = 0; i < NumIndices; ++i) { - dims[i] = dimensions[i]; + dims[i] = static_cast(dimensions[i]); } resize(dims); }