ruby-changes:31274
From: nobu <ko1@a...>
Date: Fri, 18 Oct 2013 16:04:48 +0900 (JST)
Subject: [ruby-changes:31274] nobu:r43353 (trunk): * gc.c (wmap_inspect_i): fix callback argument.
nobu 2013-10-18 16:04:42 +0900 (Fri, 18 Oct 2013) New Revision: 43353 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43353 Log: * gc.c (wmap_inspect_i): fix callback argument. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 43352) +++ gc.c (revision 43353) @@ -5273,8 +5273,7 @@ struct wmap_iter_arg { https://github.com/ruby/ruby/blob/trunk/gc.c#L5273 static int wmap_inspect_i(st_data_t key, st_data_t val, st_data_t arg) { - struct wmap_iter_arg *args = (struct wmap_iter_arg *)arg; - VALUE str = args->value; + VALUE str = (VALUE)arg; VALUE k = (VALUE)key, v = (VALUE)val; if (RSTRING_PTR(str)[0] != '#') { @@ -5305,6 +5304,7 @@ wmap_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/gc.c#L5304 st_foreach(w->obj2wmap, wmap_inspect_i, str); } RSTRING_PTR(str)[0] = '#'; + rb_str_cat2(str, ">"); return str; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/