diff --git a/matrix/Vector.hpp b/matrix/Vector.hpp index 381a857117..99074f2053 100644 --- a/matrix/Vector.hpp +++ b/matrix/Vector.hpp @@ -123,7 +123,7 @@ public: Vector operator/(Type scalar) const { - return (*this)*(1.0/scalar); + return (*this)*(Type(1.0)/scalar); } Vector operator+(Type scalar) const