Skip to content

Commit ce41f6e

Browse files
kar-rahul-awsSkptakchinglee-iotaggarg
authored
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 <[email protected]> Co-authored-by: chinglee-iot <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent 71d86f9 commit ce41f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/stack_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
#define taskCHECK_FOR_STACK_OVERFLOW() \
9090
do { \
9191
const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
92-
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \
92+
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
9393
\
9494
if( ( pulStack[ 0 ] != ulCheckValue ) || \
9595
( pulStack[ 1 ] != ulCheckValue ) || \

0 commit comments

Comments
 (0)