From 9033177cf4b87e1f0d5a4faddfa116e05d818a7a Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 29 Oct 2001 06:16:01 +0000 Subject: * intern.h (rb_protect_inspect): follow the change of array.c. * eval.c (rb_exec_end_proc): follow the change of rb_protect(). * eval.c (method_proc, umethod_proc, rb_catch): cast the first parameter of rb_iterate() to avoid VC++ warning. * range.c (range_step): ditto. * ext/sdbm/init.c (fsdbm_update, fsdbm_replace): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/sdbm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c index 507fae69c..b3365ff42 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; } -- cgit