From c2d6db13eca195eb39f7306fd37ac1618362c6d2 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 13 Sep 2023 21:28:43 +1000 Subject: [PATCH] Plane: explicitly type cast pitch limit --- ArduPlane/quadplane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index b929c0713d..0acaab41b6 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -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); } /*