From 0c9526912cf9796f3a77483f7efebec356f46b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Tue, 17 Oct 2023 18:46:19 +0000 Subject: [PATCH] Pass div_ceil arguments by value. --- Eigen/src/Core/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 26bfa40e2..0f5a0fd5c 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -1345,7 +1345,7 @@ double ceil(const double &x) { return ::ceil(x); } // T is assumed to be an integer type with a>=0, and b>0 template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE EIGEN_CONSTEXPR -T div_ceil(const T &a, const T &b) +T div_ceil(T a, T b) { EIGEN_STATIC_ASSERT((NumTraits::IsInteger), THIS FUNCTION IS FOR INTEGER TYPES) eigen_assert(a >= 0);