From 4644d14990df61b1fcc22cd9016a9f877ea29d32 Mon Sep 17 00:00:00 2001 From: Satoshi Tagomori Date: Sat, 20 Sep 2025 14:44:35 +0900 Subject: [PATCH] Fix the missed vm_ns during rebase to follow the change b227a942b205c89fdb5adc85acdf029b9b83faf1 --- load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load.c b/load.c index cab3cdf3b2..a0c45561d7 100644 --- a/load.c +++ b/load.c @@ -390,10 +390,10 @@ get_loaded_features_index(const rb_namespace_t *ns) features_index_add(ns, as_str, INT2FIX(i)); } /* The user modified $LOADED_FEATURES, so we should restore the changes. */ - if (!rb_ary_shared_with_p(features, CURRENT_NS_LOADED_FEATURES(vm_ns))) { + if (!rb_ary_shared_with_p(features, ns->loaded_features)) { rb_ary_replace(ns->loaded_features, features); } - reset_loaded_features_snapshot(vm_ns); + reset_loaded_features_snapshot(ns); features = ns->loaded_features_snapshot; long j = RARRAY_LEN(features);