summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 14:44:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 14:44:09 +0000
commitf56288d7a8b0972a0ceacd359dd0b7438f7540d0 (patch)
tree483d44cf0a4f826772fde788eb02b61fdd238b13 /iseq.c
parentd77305fc9cdf295bee3d6d6148dfc602291ad91f (diff)
replace `GET_THREAD()->ec` to `GET_EC()`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 6b3379430c..1dca759834 100644
--- a/iseq.c
+++ b/iseq.c
@@ -870,7 +870,7 @@ iseqw_s_compile_file(int argc, VALUE *argv, VALUE self)
parser = rb_parser_new();
rb_parser_set_context(parser, NULL, FALSE);
node = rb_parser_compile_file_path(parser, file, f, NUM2INT(line));
- if (!node) exc = GET_THREAD()->ec->errinfo;
+ if (!node) exc = GET_EC()->errinfo;
rb_io_close(f);
if (!node) rb_exc_raise(exc);