summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
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;