From e8ccf9f758a98348a3f35bb746b0d9b963dbb07b Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 02:53:17 +0000 Subject: avoid duplicated-cond compile error. * cont.c (cont_restore_thread): fix duplicated-cond compile error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index d4d6f2e60d..e340677fba 100644 --- a/cont.c +++ b/cont.c @@ -709,8 +709,10 @@ cont_restore_thread(rb_context_t *cont) 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; -- cgit v1.2.3