summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-10 14:08:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-10 14:08:22 +0000
commit1d368c700543be355c95c5785c3c8a0ecbef2e65 (patch)
tree661e3447f5514ca1c132100bba4043bf3f42d70c /variable.c
parenta3b4571b042942e44233a1e6e15a8c5bdac63b03 (diff)
* variable.c (rb_autoload): hide internal data from ruby level.
fixed: [ruby-dev:25435], [ruby-list:40498] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 5a3e827..15c75eb 100644
--- a/variable.c
+++ b/variable.c
@@ -1289,7 +1289,8 @@ rb_autoload(mod, id, file)
tbl = check_autoload_table(av);
}
else {
- av = Data_Wrap_Struct(0, rb_mark_tbl, st_free_table, 0);
+ av = Data_Wrap_Struct(rb_cData, rb_mark_tbl, st_free_table, 0);
+ RBASIC(av)->klass = 0;
st_add_direct(tbl, autoload, av);
DATA_PTR(av) = tbl = st_init_numtable();
}