From 0b44525bdabbaf42ae92bf9edc684655453d0010 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 17 Apr 2019 17:47:30 +1000 Subject: [PATCH] AP_InternalError: correct cast in debug statement --- libraries/AP_InternalError/AP_InternalError.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_InternalError/AP_InternalError.cpp b/libraries/AP_InternalError/AP_InternalError.cpp index 2718f252f7..cb2b01d02f 100644 --- a/libraries/AP_InternalError/AP_InternalError.cpp +++ b/libraries/AP_InternalError/AP_InternalError.cpp @@ -5,7 +5,7 @@ static AP_InternalError instance; void AP_InternalError::error(const AP_InternalError::error_t e) { #if CONFIG_HAL_BOARD == HAL_BOARD_SITL - AP_HAL::panic("internal error %u", uint8_t(e)); + AP_HAL::panic("internal error %u", unsigned(e)); #endif internal_errors |= uint32_t(e); }