diff options
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -233,7 +233,7 @@ rb_feature_provided(const char *feature, const char **loading) return FALSE; } } - if (rb_feature_p(feature, feature + strlen(feature), TRUE, FALSE, loading)) + if (rb_feature_p(feature, 0, TRUE, FALSE, loading)) return TRUE; return FALSE; } @@ -473,7 +473,7 @@ search_required(VALUE fname, volatile VALUE *path, int safe_level) OBJ_FREEZE(tmp); if (rb_find_file_ext_safe(&tmp, loadable_ext + 1, safe_level)) { ext = strrchr(ftptr = RSTRING_PTR(tmp), '.'); - if (!rb_feature_p(ftptr, ext, Qfalse, Qtrue, &loading) || loading) + if (!rb_feature_p(ftptr, ext, FALSE, TRUE, &loading) || loading) *path = tmp; return 's'; } |