summaryrefslogtreecommitdiff
path: root/safe.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 /safe.c
parentd77305fc9cdf295bee3d6d6148dfc602291ad91f (diff)
downloadruby-f56288d7a8b0972a0ceacd359dd0b7438f7540d0.tar.gz
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 'safe.c')
-rw-r--r--safe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/safe.c b/safe.c
index d1368d7f5f..9e57346142 100644
--- a/safe.c
+++ b/safe.c
@@ -34,13 +34,13 @@ ruby_safe_level_2_warning(void)
int
rb_safe_level(void)
{
- return GET_THREAD()->ec->safe_level;
+ return GET_EC()->safe_level;
}
void
rb_set_safe_level_force(int safe)
{
- GET_THREAD()->ec->safe_level = safe;
+ GET_EC()->safe_level = safe;
}
void