summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 06:16:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-29 06:16:01 +0000
commit864bc4f18beb189c07a22e605810bb8d6eef5645 (patch)
tree239972797f1d798d6adb75a150fbfbd453d5751f /range.c
parent88abd791f522c7097141753c3480a456340215f8 (diff)
* 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
Diffstat (limited to 'range.c')
-rw-r--r--range.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/range.c b/range.c
index 6a1afde..9f6581f 100644
--- a/range.c
+++ b/range.c
@@ -311,7 +311,8 @@ range_step(argc, argv, range)
args[0] = b; args[1] = e; args[2] = range;
iter[0] = 1; iter[1] = NUM2LONG(step);
- rb_iterate(r_step_str, (VALUE)args, r_step_str_i, (VALUE)iter);
+ rb_iterate((VALUE(*)_((VALUE)))r_step_str, (VALUE)args, r_step_str_i,
+ (VALUE)iter);
}
else { /* generic each */
VALUE v = b;