summaryrefslogtreecommitdiff
path: root/libguile/continuations.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/continuations.c')
-rw-r--r--libguile/continuations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/continuations.c b/libguile/continuations.c
index 2b10126cf..dc1456985 100644
--- a/libguile/continuations.c
+++ b/libguile/continuations.c
@@ -121,8 +121,6 @@ scm_make_continuation (int *first)
continuation->root = thread->continuation_root;
continuation->dframe = scm_i_last_debug_frame ();
src = thread->continuation_base;
- SCM_NEWSMOB (cont, scm_tc16_continuation, continuation);
-
#if ! SCM_STACK_GROWS_UP
src -= stack_size;
#endif
@@ -130,6 +128,8 @@ scm_make_continuation (int *first)
memcpy (continuation->stack, src, sizeof (SCM_STACKITEM) * stack_size);
continuation->vm_conts = scm_vm_capture_continuations ();
+ SCM_NEWSMOB (cont, scm_tc16_continuation, continuation);
+
*first = !setjmp (continuation->jmpbuf);
if (*first)
{