diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-18 07:04:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-18 07:04:42 +0000 |
commit | 24b97da7efdb8691411c5032f03044c7d958f20d (patch) | |
tree | f3a578574d34a349c4e0655efc31e1ec7ae94542 /gc.c | |
parent | 936b96e9b76cf4cac599f22d437ffbe2ee977c81 (diff) | |
download | ruby-24b97da7efdb8691411c5032f03044c7d958f20d.tar.gz |
* gc.c (wmap_inspect_i): fix callback argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5273,8 +5273,7 @@ struct wmap_iter_arg { 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) st_foreach(w->obj2wmap, wmap_inspect_i, str); } RSTRING_PTR(str)[0] = '#'; + rb_str_cat2(str, ">"); return str; } |