diff --git a/cpu/native/native_cpu.c b/cpu/native/native_cpu.c index 0a1cfe1333fe86d09d647edce9ea0b818de8ebf0..295231aac318e4de6591e0b6b9eca971c4e88838 100644 --- a/cpu/native/native_cpu.c +++ b/cpu/native/native_cpu.c @@ -94,7 +94,7 @@ char *thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_sta stk = stack_start; - p = (ucontext_t *)(stk + ((stacksize - sizeof(ucontext_t)) / sizeof(void *))); + p = (ucontext_t *)(stk + (stacksize - sizeof(ucontext_t))); stacksize -= sizeof(ucontext_t); if (getcontext(p) == -1) {