From 605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 20 Feb 2009 20:21:37 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@792 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7/chcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/ARM7') 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. -- cgit v1.2.3