aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 00:54:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 00:54:13 +0000
commit96bf8c09b7cb63e941d2e047fa30d6e838c5962c (patch)
tree37edaf62e4140b5fdb7064f21bce928814f9dc92 /eval.c
parent657dffe0e736c08941c8c6a8a6290240637ee3fe (diff)
downloadruby-96bf8c09b7cb63e941d2e047fa30d6e838c5962c.tar.gz
eval.c: fix state type
* eval.c (setup_exception): state is a raised thread flag, not for EXEC_TAG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index e4867d182a..bebed0b19f 100644
--- a/eval.c
+++ b/eval.c
@@ -500,7 +500,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause)
file = rb_source_loc(&line);
if ((file && !NIL_P(mesg)) || (cause != Qundef)) {
- enum ruby_tag_type state;
+ int state = 0;
TH_PUSH_TAG(th);
if (EXEC_TAG() == TAG_NONE && !(state = rb_threadptr_set_raised(th))) {