summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-13 07:26:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-13 07:26:47 +0000
commitae2fe781dd4aae16a2f03a4b9fb93514eb9886d4 (patch)
treebc7b2f6399af854b2b7e3515916c5f51d970bf57 /range.c
parentad592443af373c3bbe61b41df106734856ad3072 (diff)
1.1b9_19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/range.c b/range.c
index c9a79d5..fbf6b4a 100644
--- a/range.c
+++ b/range.c
@@ -39,7 +39,7 @@ range_s_new(klass, first, last)
VALUE args[2];
args[0] = first; args[1] = last;
- rb_rescue(range_check, args, range_failed, 0);
+ rb_rescue(range_check, (VALUE)args, range_failed, 0);
obj = obj_alloc(klass);
@@ -111,7 +111,7 @@ range_each(obj)
data.first = b;
data.last = e;
- rb_iterate(range_upto, &data, rb_yield, 0);
+ rb_iterate(range_upto, (VALUE)&data, rb_yield, 0);
}
return Qnil;