Skip to content

Commit

Permalink
Add constanst suffix to prevent potential type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 8, 2023
1 parent 5dbfd38 commit 6671954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/stack_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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 ) || \
Expand Down

0 comments on commit 6671954

Please sign in to comment.