From 60c9c99dcc44ea12bed0c3f9b95d01e2aa6d7d9e Mon Sep 17 00:00:00 2001 From: James Goppert Date: Tue, 17 Sep 2019 09:46:55 -0400 Subject: [PATCH] Fix type for division. --- matrix/Matrix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)