From 864bc4f18beb189c07a22e605810bb8d6eef5645 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 5fb2213c75..e9cf463d9f 100644 --- a/eval.c +++ b/eval.c @@ -5967,7 +5967,7 @@ rb_exec_end_proc() save = link = end_procs; while (link) { - rb_protect((VALUE(*)())link->func, link->data, &status); + rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status); if (status) { error_handle(status); } @@ -5975,7 +5975,7 @@ rb_exec_end_proc() } link = end_procs; while (link != save) { - rb_protect((VALUE(*)())link->func, link->data, &status); + rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status); if (status) { error_handle(status); } @@ -6948,14 +6948,14 @@ static VALUE method_proc(method) VALUE method; { - return rb_iterate(mproc, 0, bmcall, method); + return rb_iterate((VALUE(*)_((VALUE)))mproc, 0, bmcall, method); } static VALUE umethod_proc(method) VALUE method; { - return rb_iterate(mproc, 0, umcall, method); + return rb_iterate((VALUE(*)_((VALUE)))mproc, 0, umcall, method); } static VALUE @@ -9074,7 +9074,7 @@ rb_catch(tag, proc, data) VALUE (*proc)(); VALUE data; { - return rb_iterate(catch_i, rb_intern(tag), proc, data); + return rb_iterate((VALUE(*)_((VALUE)))catch_i, rb_intern(tag), proc, data); } static VALUE -- cgit v1.2.3