summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-08 21:08:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-08 21:27:39 +0900
commit3d87b774c4e38e0dbe3ef181183565c5987cd05f (patch)
treec439cec4a2ae6dac09a42ca8b7127ac37122c70a
parentb1594ca3d6b72edb60927418482652ce93209499 (diff)
Use `ec` instead of `th->ec` where the `th` came from the `ec`
-rw-r--r--load.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/load.c b/load.c
index d16bba1d23..cc5533e8b2 100644
--- a/load.c
+++ b/load.c
@@ -579,7 +579,7 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap)
rb_thread_t *volatile th0 = th;
#endif
- th->ec->errinfo = Qnil; /* ensure */
+ ec->errinfo = Qnil; /* ensure */
if (!wrap) {
th->top_wrapper = 0;
@@ -591,7 +591,7 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap)
rb_extend_object(th->top_self, th->top_wrapper);
}
- EC_PUSH_TAG(th->ec);
+ EC_PUSH_TAG(ec);
state = EC_EXEC_TAG();
if (state == TAG_NONE) {
rb_ast_t *ast;
@@ -624,8 +624,8 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap)
rb_vm_jump_tag_but_local_jump(state);
}
- if (!NIL_P(th->ec->errinfo)) {
- rb_exc_raise(th->ec->errinfo);
+ if (!NIL_P(ec->errinfo)) {
+ rb_exc_raise(ec->errinfo);
}
}