From 86fef47dc25fcb5e3ca73b7aca6d1b6f067d9b89 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 21 Nov 2024 09:37:42 +1100 Subject: [PATCH] AC_Fence: specify storage type for AC_PolyFenceType we allocate RAM based on the size of this structure --- libraries/AC_Fence/AC_PolyFence_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Fence/AC_PolyFence_loader.h b/libraries/AC_Fence/AC_PolyFence_loader.h index 4470cfa4fb..1625c87793 100644 --- a/libraries/AC_Fence/AC_PolyFence_loader.h +++ b/libraries/AC_Fence/AC_PolyFence_loader.h @@ -9,7 +9,7 @@ // radius looks like an integer as a backwards-compatibility measure. // For 4.2 we might consider only loading _INT and always saving as // float, and in 4.3 considering _INT invalid -enum class AC_PolyFenceType { +enum class AC_PolyFenceType : uint8_t { END_OF_STORAGE = 99, POLYGON_INCLUSION = 98, POLYGON_EXCLUSION = 97,