summaryrefslogtreecommitdiff
path: root/ext/sdbm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sdbm')
-rw-r--r--ext/sdbm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 507fae69c1..b3365ff429 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -381,7 +381,7 @@ static VALUE
fsdbm_update(obj, other)
VALUE obj, other;
{
- rb_iterate(each_pair, other, update_i, obj);
+ rb_iterate((VALUE(*)_((VALUE)))each_pair, other, update_i, obj);
return obj;
}
@@ -390,7 +390,7 @@ fsdbm_replace(obj, other)
VALUE obj, other;
{
fsdbm_clear(obj);
- rb_iterate(each_pair, other, update_i, obj);
+ rb_iterate((VALUE(*)_((VALUE)))each_pair, other, update_i, obj);
return obj;
}