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

ruby-changes:48667

From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 11:53:23 +0900 (JST)
Subject: [ruby-changes:48667] ko1:r60783 (trunk): avoid duplicated-cond compile error.

ko1	2017-11-16 11:53:17 +0900 (Thu, 16 Nov 2017)

  New Revision: 60783

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

  Log:
    avoid duplicated-cond compile error.
    
    * cont.c (cont_restore_thread): fix duplicated-cond compile error.

  Modified files:
    trunk/cont.c
Index: cont.c
===================================================================
--- cont.c	(revision 60782)
+++ cont.c	(revision 60783)
@@ -709,8 +709,10 @@ cont_restore_thread(rb_context_t *cont) https://github.com/ruby/ruby/blob/trunk/cont.c#L709
 	if (sec->trace_arg == NULL && th->ec->trace_arg != NULL) {
 	    GET_VM()->trace_running--;
 	}
-	else if (sec->trace_arg == NULL && th->ec->trace_arg != NULL) {
-	    GET_VM()->trace_running++;
+	else { /* sec->trace_arg == NULL */
+	    if (th->ec->trace_arg != NULL) {
+		GET_VM()->trace_running++;
+	    }
 	}
 	th->ec->trace_arg = sec->trace_arg;
 

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

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