mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (rb_autoload): initialize typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
78ab4258ff
commit
ed02d584a3
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Sep 9 13:33:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* variable.c (rb_autoload): initialize typed data.
|
||||
|
||||
Wed Sep 9 13:10:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* st.c (st_free_table): constified.
|
||||
|
|
|
@ -1407,7 +1407,7 @@ rb_autoload(VALUE mod, ID id, const char *file)
|
|||
tbl = check_autoload_table((VALUE)av);
|
||||
}
|
||||
else {
|
||||
av = (st_data_t)Data_Wrap_Struct(0, rb_mark_tbl, st_free_table, 0);
|
||||
av = (st_data_t)TypedData_Wrap_Struct(0, &autoload_data_type, 0);
|
||||
st_add_direct(tbl, (st_data_t)autoload, av);
|
||||
DATA_PTR(av) = tbl = st_init_numtable();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue