diff options
author | chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> | 2023-12-08 09:06:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 09:06:55 +0300 |
commit | a2712b5e3833ad60b88ea7b48bb482777947760f (patch) | |
tree | 1ec5ff9cf26193ae172eef8880a26f88491747ad | |
parent | 5dbfd380f0e9cca8dddd9ddddbe0c750af460ff5 (diff) |
Add constanst suffix to prevent potential type conversion (#921)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-245.ap-northeast-1.compute.internal>
-rw-r--r-- | include/stack_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stack_macros.h b/include/stack_macros.h index f53afb2cd..bd9ec2770 100644 --- a/include/stack_macros.h +++ b/include/stack_macros.h @@ -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 ) || \ |