Fix type for division.

This commit is contained in:
James Goppert
2019-09-17 11:08:00 -04:00
committed by Daniel Agar
parent b4714e2ed2
commit 60c9c99dcc
+1 -1
View File
@@ -278,7 +278,7 @@ public:
void operator/=(Type scalar)
{
Matrix<Type, M, N> &self = *this;
self = self * (1.0f / scalar);
self = self * (Type(1.0f) / scalar);
}
inline void operator+=(Type scalar)