diff options
Diffstat (limited to 'os/rt/include/chschd.h')
-rw-r--r-- | os/rt/include/chschd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h index 0679cadd5..12a6762fa 100644 --- a/os/rt/include/chschd.h +++ b/os/rt/include/chschd.h @@ -116,7 +116,7 @@ * @api
*/
#define THD_ALIGN_STACK_SIZE(n) \
- ((((n) - 1) | (sizeof(stkalign_t) - 1)) + 1)
+ (((((size_t)(n)) - 1U) | (sizeof(stkalign_t) - 1U)) + 1U)
/**
* @brief Calculates the total Working Area size.
|