From 7ad7c1d5c59ab0bf87f83003283f0cc8357789bd Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Tue, 24 Sep 2024 22:07:00 +0000 Subject: [PATCH] fix implicit conversion warning (again) --- unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h index f5172cd8d..5db563d60 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h @@ -177,7 +177,7 @@ struct TensorEvaluator, Device> { // Check if chipping is effectively inner or outer: products of dimensions // before or after the chipped dimension is `1`. Index after_chipped_dim_product = 1; - for (int i = m_dim.actualDim() + 1; i < NumInputDims; ++i) { + for (int i = static_cast(m_dim.actualDim()) + 1; i < NumInputDims; ++i) { after_chipped_dim_product *= input_dims[i]; }