changed first parameter in longjmp to long * to let it compile on cray x1.
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 22 Jul 2003 17:52:08 +0000 (17:52 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 22 Jul 2003 17:52:08 +0000 (17:52 +0000)
src/QuickThreads/md/setjmp64.c

index 23571db01d7c1b548cd7231bd88d77b5ffaff270..c800c7072df5e4c44473f581f1f82e746c415bcc 100644 (file)
@@ -42,7 +42,7 @@ static void qt_args_1(qt_t *rjb, void *u, void *t,
   rhelp = (struct helpdesc *)pbuf[index];
   if (rhelp == 0) {
     SHIFTSP(rjb);
-    longjmp((int*)rjb, push_buf((void *)jb));
+    longjmp((unsigned long*)rjb, push_buf((void *)jb));
   }
   rhelp->hfn(rhelp->jb, rhelp->old, rhelp->new);
   only(u, t, userf);
@@ -77,7 +77,7 @@ void *qt_block(qt_helper_t *hfn, void *old, void *new, qt_t *sp)
   rhelp = (struct helpdesc *)pbuf[index];
   if (rhelp==0) {
     SHIFTSP(sp);
-    longjmp((int*)sp, push_buf((void *)&help));
+    longjmp((unsigned long*)sp, push_buf((void *)&help));
   }
   rhelp->hfn(rhelp->jb, rhelp->old, rhelp->new);
 }
@@ -90,5 +90,5 @@ void *qt_abort(qt_helper_t *hfn, void *old, void *new, qt_t *sp)
   help.old = old;
   help.new = new;
   SHIFTSP(sp);
-  longjmp((int*)sp, push_buf((void *)&help));
+  longjmp((unsigned long*)sp, push_buf((void *)&help));
 }