AP_Math: Matrix_alg fix implicite cast from bool to float

This commit is contained in:
Pierre Kancir 2016-12-05 09:19:50 +01:00 committed by Lucas De Marchi
parent da1f784e78
commit 79a9e8dfad

View File

@ -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);
}
}