ruby-changes:55257
From: nobu <ko1@a...>
Date: Sun, 7 Apr 2019 20:14:11 +0900 (JST)
Subject: [ruby-changes:55257] nobu:r67464 (trunk): gc.c: missing break
nobu 2019-04-07 20:14:06 +0900 (Sun, 07 Apr 2019) New Revision: 67464 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67464 Log: gc.c: missing break * gc.c (obj_memsize_of): T_RATIONAL and T_COMPLEX cannot be an imemo. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 67463) +++ gc.c (revision 67464) @@ -3408,6 +3408,7 @@ obj_memsize_of(VALUE obj, int use_all_ty https://github.com/ruby/ruby/blob/trunk/gc.c#L3408 break; case T_RATIONAL: case T_COMPLEX: + break; case T_IMEMO: if (imemo_type_p(obj, imemo_tmpbuf)) { size += RANY(obj)->as.imemo.alloc.cnt * sizeof(VALUE); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/