diff --git a/matrix/SquareMatrix.hpp b/matrix/SquareMatrix.hpp index 6dd138dda8..a86763465d 100644 --- a/matrix/SquareMatrix.hpp +++ b/matrix/SquareMatrix.hpp @@ -185,7 +185,7 @@ public: size_t k = 1; while (k < n) { - res += A_pow * (Type(pow(dt, k)) / k_fact); + res += A_pow * (Type(pow(dt, k)) / Type(k_fact)); if (k == n) { break;