diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | variable.c | 2 |
2 files changed, 5 insertions, 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. diff --git a/variable.c b/variable.c index dfda427ca..ea7dfbb0d 100644 --- a/variable.c +++ b/variable.c @@ -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(); } |