aboutsummaryrefslogtreecommitdiffstats
path: root/ports/ARMCM3/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/ARMCM3/chcore.h')
-rw-r--r--ports/ARMCM3/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/ARMCM3/chcore.h b/ports/ARMCM3/chcore.h
index d4b3dd3bc..6474d91d0 100644
--- a/ports/ARMCM3/chcore.h
+++ b/ports/ARMCM3/chcore.h
@@ -133,7 +133,7 @@ typedef struct {
INT_REQUIRED_STACK)
#define UserStackSize(n) THD_WA_SIZE(n)
-#define WORKING_AREA(s, n) stkalign_t s[THD_WA_SIZE(n)];
+#define WORKING_AREA(s, n) stkalign_t s[THD_WA_SIZE(n) / sizeof(stkalign_t)];
#define WorkingArea(s, n) WORKING_AREA(s, n)
/* called on each interrupt entry, currently nothing is done */