mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_Math: Matrix_alg fix implicite cast from bool to float
This commit is contained in:
parent
da1f784e78
commit
79a9e8dfad
@ -75,7 +75,7 @@ static void mat_pivot(float* A, float* pivot, uint8_t n)
|
||||
{
|
||||
for(uint8_t i = 0;i<n;i++){
|
||||
for(uint8_t j=0;j<n;j++) {
|
||||
pivot[i*n+j] = (i==j);
|
||||
pivot[i*n+j] = static_cast<float>(i==j);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user