diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-30 22:40:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-30 22:40:54 +0000 |
commit | 4b3a1f77e14696780265f4c05bfa01a5216f8f99 (patch) | |
tree | 8c9abaa64e4ba0cb19207e3341001b54681e5233 /marshal.c | |
parent | db5ede2236ab49aaf6fca49ecbef7594eed97e8a (diff) |
* hash.c, marshal.c, object.c, variable.c: fix callback argument types
of iterators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -506,8 +506,12 @@ w_uclass(VALUE obj, VALUE super, struct dump_arg *arg) } static int -w_obj_each(ID id, VALUE value, struct dump_call_arg *arg) +w_obj_each(st_data_t key, st_data_t val, st_data_t a) { + ID id = (ID)key; + VALUE value = (VALUE)val; + struct dump_call_arg *arg = (struct dump_call_arg *)a; + if (id == rb_id_encoding()) return ST_CONTINUE; if (id == rb_intern("E")) return ST_CONTINUE; w_symbol(id, arg->arg); |