aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chcore.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-20 20:21:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-20 20:21:37 +0000
commit605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e (patch)
tree9c79569815668dc7b64fbaeca2af7524f714ac76 /demos/Win32-MinGW/chcore.h
parentdaabc2b079b17a41ca2f1a2a6423373f811402ba (diff)
downloadChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.tar.gz
ChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.tar.bz2
ChibiOS-605d283b6aced9dd69f32b6d6ac0e9f0d25cd10e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@792 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/chcore.h')
-rw-r--r--demos/Win32-MinGW/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/Win32-MinGW/chcore.h b/demos/Win32-MinGW/chcore.h
index 029de3566..97f248a54 100644
--- a/demos/Win32-MinGW/chcore.h
+++ b/demos/Win32-MinGW/chcore.h
@@ -109,7 +109,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.