Plane: explicitly type cast pitch limit

This commit is contained in:
Paul Riseborough 2023-09-13 21:28:43 +10:00 committed by Andrew Tridgell
parent 90eacaeb88
commit c2d6db13ec

View File

@ -3015,7 +3015,7 @@ void QuadPlane::assign_tilt_to_fwd_thr(void) {
nav_pitch_lower_limit_cd = - q_fwd_pitch_lim_cd;
}
plane.nav_pitch_cd = MAX(plane.nav_pitch_cd, nav_pitch_lower_limit_cd);
plane.nav_pitch_cd = MAX(plane.nav_pitch_cd, (int32_t)nav_pitch_lower_limit_cd);
}
/*