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); }