summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eval_intern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 69e9134dbb..f81f922269 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -141,7 +141,8 @@ NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, int));
static inline void
rb_threadptr_tag_jump(rb_thread_t *th, int st)
{
- ruby_longjmp(th->tag->buf, (th->state = st));
+ th->state = st;
+ ruby_longjmp(th->tag->buf, 1);
}
/*