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
This commit is contained in:
parent
92f7813ae2
commit
a2fcfba534
2
eval.c
2
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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user