mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 17:38:54 +08:00
Fix type for division.
This commit is contained in:
committed by
Daniel Agar
parent
b4714e2ed2
commit
60c9c99dcc
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user