summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--variable.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 12186622c8..7803f9f403 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 dfda427cad..ea7dfbb0da 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();
}