diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/templates/chcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/chcore.h b/src/templates/chcore.h index fa0edd034..78fa3abac 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -96,7 +96,7 @@ struct context { /**
* Enforces a correct alignment for a stack area size value.
*/
-#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
+#define STACK_ALIGN(n) ((((n) - 1) | (sizeof(stkalign_t) - 1)) + 1)
/**
* Computes the thread working area global size.
|