From a6755b640604a3ceb3b312b8bc672161f2b4fd66 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 Apr 2019 10:15:26 +1100 Subject: [PATCH] AP_Common: correct type conversion issues in _assert_storage_size --- libraries/AP_Common/AP_Common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 954704208e..d6fb0f5890 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -114,10 +114,10 @@ // templates are used for this because the compiler's output will // usually contain details of the template instantiation so you can // see how the actual size differs from the expected size. -template struct _assert_storage_size { +template struct _assert_storage_size { static_assert(s_size == t, "wrong size"); }; -template struct assert_storage_size { +template struct assert_storage_size { _assert_storage_size _member; };