diff --git a/ChangeLog b/ChangeLog index e6a7cb0abd..555ab786e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Jun 22 23:24:22 2009 Yukihiro Matsumoto + + * variable.c (rb_generic_ivar_memsize): typo fixed. a patch from + Kazuhiro NISHIYAMA. [ruby-dev:38700] + + * ext/objspace/objspace.c (memsize_of): ditto. + Mon Jun 22 21:21:59 2009 Tanaka Akira * io.c: remove __CHECKER__ test. diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 0d4acfb53b..d200e1736c 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -34,7 +34,7 @@ size_t rb_ary_memsize(VALUE); size_t st_memsize(st_table *); size_t rb_io_memsize(rb_io_t *); size_t onig_memsize(regex_t *); -size_t rb_geneic_ivar_memsize(VALUE); +size_t rb_generic_ivar_memsize(VALUE); size_t rb_objspace_data_type_memsize(VALUE obj); void rb_objspace_each_objects( @@ -51,7 +51,7 @@ memsize_of(VALUE obj) } if (FL_TEST(obj, FL_EXIVAR)) { - size += rb_geneic_ivar_memsize(obj); + size += rb_generic_ivar_memsize(obj); } switch (BUILTIN_TYPE(obj)) { diff --git a/variable.c b/variable.c index 9d360de4da..14fd4cdbdc 100644 --- a/variable.c +++ b/variable.c @@ -920,7 +920,7 @@ rb_free_generic_ivar(VALUE obj) } size_t -rb_geneic_ivar_memsize(VALUE obj) +rb_generic_ivar_memsize(VALUE obj) { st_data_t tbl; if (st_delete(generic_iv_tbl, &obj, &tbl))