diff --git a/matrix/Matrix.hpp b/matrix/Matrix.hpp index 6ef16e3f20..79887eff63 100644 --- a/matrix/Matrix.hpp +++ b/matrix/Matrix.hpp @@ -278,7 +278,7 @@ public: void operator/=(Type scalar) { Matrix &self = *this; - self = self * (1.0f / scalar); + self = self * (Type(1.0f) / scalar); } inline void operator+=(Type scalar)