summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--ext/objspace/objspace.c4
-rw-r--r--variable.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e6a7cb0abd1..555ab786e99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jun 22 23:24:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * 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 <akr@fsij.org>
* io.c: remove __CHECKER__ test.
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 0d4acfb53b6..d200e1736ca 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 9d360de4da3..14fd4cdbdc2 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))