[前][次][番号順一覧][スレッド一覧]

ruby-changes:47347

From: nobu <ko1@a...>
Date: Wed, 2 Aug 2017 09:54:22 +0900 (JST)
Subject: [ruby-changes:47347] nobu:r59463 (trunk): eval.c: fix state type

nobu	2017-08-02 09:54:13 +0900 (Wed, 02 Aug 2017)

  New Revision: 59463

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59463

  Log:
    eval.c: fix state type
    
    * eval.c (setup_exception): state is a raised thread flag, not for
      EXEC_TAG.

  Modified files:
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 59462)
+++ eval.c	(revision 59463)
@@ -500,7 +500,7 @@ setup_exception(rb_thread_t *th, int tag https://github.com/ruby/ruby/blob/trunk/eval.c#L500
 
     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))) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]