Browse Source

Fix type for division.

master
James Goppert 6 years ago committed by Daniel Agar
parent
commit
60c9c99dcc
  1. 2
      matrix/Matrix.hpp

2
matrix/Matrix.hpp

@ -278,7 +278,7 @@ public: @@ -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)

Loading…
Cancel
Save