mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:23:34 +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)
|
void operator/=(Type scalar)
|
||||||
{
|
{
|
||||||
Matrix<Type, M, N> &self = *this;
|
Matrix<Type, M, N> &self = *this;
|
||||||
self = self * (1.0f / scalar);
|
self = self * (Type(1.0f) / scalar);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void operator+=(Type scalar)
|
inline void operator+=(Type scalar)
|
||||||
|
|||||||
Reference in New Issue
Block a user