aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index f4f7808d28..702cc7b27d 100644
--- a/load.c
+++ b/load.c
@@ -935,7 +935,7 @@ load_failed(VALUE fname)
static VALUE
load_ext(VALUE path)
{
- SCOPE_SET(NOEX_PUBLIC);
+ rb_frame_visibility_set(NOEX_PUBLIC);
return (VALUE)dln_load(RSTRING_PTR(path));
}