summaryrefslogtreecommitdiff
path: root/coro.c
diff options
context:
space:
mode:
authorroot <root>2003-03-22 23:08:40 +0000
committerroot <root>2003-03-22 23:08:40 +0000
commitfc4ac01f01ba9b2c04c7c44a04a8a3e67185cc7e (patch)
tree180a27e36550e6e3fd2ea40571ccd00063b66836 /coro.c
parent500d919f696bc1eb53089c32a258bc5f053277fc (diff)
*** empty log message ***
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;