summaryrefslogtreecommitdiff
path: root/coro.c
diff options
context:
space:
mode:
Diffstat (limited to 'coro.c')
-rw-r--r--coro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coro.c b/coro.c
index c48c888..1cae481 100644
--- a/coro.c
+++ b/coro.c
@@ -173,8 +173,8 @@ void coro_create(coro_context *ctx,
setjmp (ctx->env);
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
&& __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(JB_PC) && defined(JB_SP)
- ctx->env[0].__jmpbuf[JB_PC] = (int)coro_init;
- ctx->env[0].__jmpbuf[JB_SP] = (int)STACK_ADJUST_PTR (sptr,ssize);
+ ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init;
+ ctx->env[0].__jmpbuf[JB_SP] = (long)STACK_ADJUST_PTR (sptr,ssize);
#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
&& __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(__mc68000__)
ctx->env[0].__jmpbuf[0].__aregs[0] = (long int)coro_init;