diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 02:53:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 02:53:17 +0000 |
commit | 08b910ec26790e93a00a4c769a760958a968d2c8 (patch) | |
tree | 65e36a1c3d5871d649c1c994ff8c467a8d7e2e33 /cont.c | |
parent | b933a31076814f2ffca7d2dedb8b649916365949 (diff) | |
download | ruby-08b910ec26790e93a00a4c769a760958a968d2c8.tar.gz |
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
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |