aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/SIMIA32/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/ports/SIMIA32/chcore.h')
-rw-r--r--os/rt/ports/SIMIA32/chcore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/ports/SIMIA32/chcore.h b/os/rt/ports/SIMIA32/chcore.h
index 5f7f3ff14..06d9f9329 100644
--- a/os/rt/ports/SIMIA32/chcore.h
+++ b/os/rt/ports/SIMIA32/chcore.h
@@ -191,8 +191,8 @@ struct context {
#define PORT_WA_SIZE(n) (sizeof(void *) * 4 + \
sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + \
- PORT_INT_REQUIRED_STACK)
+ ((size_t)(n)) + \
+ ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.