summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2001-09-03 03:42:13 +0000
committerroot <root>2001-09-03 03:42:13 +0000
commit9bdcf47c96e350f4b911a54dc286ea0aff890d05 (patch)
tree1d0da58457e7ee7779cc004299a83945b9a5867b
parent6de90843cb4c9052026866906ee9ebcd33c9f773 (diff)
*** empty log message ***
-rw-r--r--coro.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coro.c b/coro.c
index c6999a0..7c36538 100644
--- a/coro.c
+++ b/coro.c
@@ -32,15 +32,15 @@
#include "coro.h"
-#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
-
/* IRIX is decidedly NON-unix */
#if __sgi
-# define STACK_ADJUST(sp,ss) ((ss) - 8 + (char *)(sp))
+# define STACK_ADJUST(sp,ss) ((char *)(sp) + (ss) - 8)
#else
-# define STACK_ADJUST(sp,ss) (ss)
+# define STACK_ADJUST(sp,ss) (sp)
#endif
+#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
+
#include <signal.h>
static volatile coro_func coro_init_func;