mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Fix type for division.
This commit is contained in:
parent
b4714e2ed2
commit
60c9c99dcc
@ -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…
x
Reference in New Issue
Block a user