Skip to content

Commit a2712b5

Browse files
chinglee-iotUbuntu
and
Ubuntu
authored
Add constanst suffix to prevent potential type conversion (#921)
Co-authored-by: Ubuntu <[email protected]>
1 parent 5dbfd38 commit a2712b5

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
@@ -91,7 +91,7 @@
9191
#define taskCHECK_FOR_STACK_OVERFLOW() \
9292
do { \
9393
const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
94-
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \
94+
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
9595
\
9696
if( ( pulStack[ 0 ] != ulCheckValue ) || \
9797
( pulStack[ 1 ] != ulCheckValue ) || \

0 commit comments

Comments
 (0)