diff options
Diffstat (limited to 'ports/AVR')
-rw-r--r-- | ports/AVR/chcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h index 44f7b3506..187a8463c 100644 --- a/ports/AVR/chcore.h +++ b/ports/AVR/chcore.h @@ -153,7 +153,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.
|