From ce41f6ec748f35ba059c3c9f20550162e61fde66 Mon Sep 17 00:00:00 2001 From: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:37:52 +0530 Subject: [PATCH] Fix MISRA_C_2012 rule 7.2 violation (#842) * Add a u or U suffix for unsigned numerical literals * Fix formatting * Replace u with U for naming convention --------- Co-authored-by: Soren Ptak Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> --- include/stack_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stack_macros.h b/include/stack_macros.h index 7ead99ffd..0fd58139b 100644 --- a/include/stack_macros.h +++ b/include/stack_macros.h @@ -89,7 +89,7 @@ #define taskCHECK_FOR_STACK_OVERFLOW() \ do { \ const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \ - const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \ + const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \ \ if( ( pulStack[ 0 ] != ulCheckValue ) || \ ( pulStack[ 1 ] != ulCheckValue ) || \