diff options
Diffstat (limited to 'ports/ARM7')
-rw-r--r-- | ports/ARM7/chcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/ARM7/chcore.h b/ports/ARM7/chcore.h index a92ed5512..e2c6481b5 100644 --- a/ports/ARM7/chcore.h +++ b/ports/ARM7/chcore.h @@ -128,7 +128,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.
|