summaryrefslogtreecommitdiff
path: root/libcr
diff options
context:
space:
mode:
Diffstat (limited to 'libcr')
-rw-r--r--libcr/coroutine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index cf63122..7915dcb 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -805,7 +805,7 @@ void cr_cid_info(cid_t cid, struct cr_cid_info *ret) {
uint8_t *stack_hi = stack + coroutine_table[cid-1].stack_size - CR_STACK_GUARD_SIZE;
/* stack_cap */
- ret->stack_cap = stack_hi - stack_lo;
+ ret->stack_cap = (uintptr_t)stack_hi - (uintptr_t)stack_lo;
/* stack_max */
ret->stack_max = ret->stack_cap;