[macruby-changes] [755] MacRuby/trunk/variable.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 24 16:06:41 PST 2008
Revision: 755
http://trac.macosforge.org/projects/ruby/changeset/755
Author: lsansonetti at apple.com
Date: 2008-11-24 16:06:41 -0800 (Mon, 24 Nov 2008)
Log Message:
-----------
fix for #167
Modified Paths:
--------------
MacRuby/trunk/variable.c
Modified: MacRuby/trunk/variable.c
===================================================================
--- MacRuby/trunk/variable.c 2008-11-24 04:50:29 UTC (rev 754)
+++ MacRuby/trunk/variable.c 2008-11-25 00:06:41 UTC (rev 755)
@@ -1895,13 +1895,14 @@
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);
#if WITH_OBJC
rb_ivar_set(mod, autoload, av);
#else
st_add_direct(tbl, autoload, av);
#endif
- DATA_PTR(av) = tbl = st_init_numtable();
+ tbl = st_init_numtable();
+ GC_WB(&DATA_PTR(av), tbl);
}
fn = rb_str_new2(file);
#if __LP64__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081124/eff6b476/attachment.html>
More information about the macruby-changes
mailing list