diff --git a/matrix/SquareMatrix.hpp b/matrix/SquareMatrix.hpp index a86763465d..06061b420d 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)) / Type(k_fact)); + res += A_pow * (Type(pow(dt, Type(k))) / Type(k_fact)); if (k == n) { break;