Project

General

Profile

Bug #1675

typo in variable.c

Added by znz (Kazuhiro NISHIYAMA) almost 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
r23818
Backport:
[ruby-dev:38700]

Description

=begin
geneic は generic の typo ではないでしょうか。

Index: trunk/variable.c
===================================================================
--- trunk/variable.c (revision 23818)
+++ trunk/variable.c (working copy)
@@ -920,7 +920,7 @@
}

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))
Index: trunk/ext/objspace/objspace.c
===================================================================
--- trunk/ext/objspace/objspace.c (revision 23818)
+++ trunk/ext/objspace/objspace.c (working copy)
@@ -34,7 +34,7 @@
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 @@
}

  if (FL_TEST(obj, FL_EXIVAR)) {
  • size += rb_geneic_ivar_memsize(obj);
  • size += rb_generic_ivar_memsize(obj);
    }

    switch (BUILTIN_TYPE(obj)) {
    =end

History

#1

Updated by matz (Yukihiro Matsumoto) almost 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23820.
=end

Also available in: Atom PDF