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:
parent
87c03694e6
commit
93591d31b0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue