summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-30 22:40:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-30 22:40:54 +0000
commit4b3a1f77e14696780265f4c05bfa01a5216f8f99 (patch)
tree8c9abaa64e4ba0cb19207e3341001b54681e5233 /marshal.c
parentdb5ede2236ab49aaf6fca49ecbef7594eed97e8a (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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 3b9f93e545..dee1891106 100644
--- a/marshal.c
+++ b/marshal.c
@@ -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);