1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use rb_cObject instead of rb_cData

This commit is contained in:
Nobuyoshi Nakada 2021-12-30 23:32:35 +09:00
parent 87c03694e6
commit 93591d31b0
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -256,7 +256,7 @@ Init_<%=init_name%><%=%>(void)
% if @have_sublib
struct prelude_env memo;
ID name = rb_intern("TMP_RUBY_PREFIX");
VALUE prelude = Data_Wrap_Struct(rb_cData, 0, 0, &memo);
VALUE prelude = Data_Wrap_Struct(rb_cObject, 0, 0, &memo);
memo.prefix_path = rb_const_remove(rb_cObject, name);
rb_const_set(rb_cObject, name, prelude);