diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1811,7 +1811,7 @@ ruby_float_step(VALUE from, VALUE to, VALUE step, int excl) } VALUE -num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl) +ruby_num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl) { if (FIXNUM_P(from) && FIXNUM_P(to) && FIXNUM_P(step)) { long delta, diff, result; @@ -1847,7 +1847,7 @@ num_step_size(VALUE from, VALUE args) { VALUE to = RARRAY_PTR(args)[0]; VALUE step = (RARRAY_LEN(args) > 1) ? RARRAY_PTR(args)[1] : INT2FIX(1); - return num_interval_step_size(from, to, step, FALSE); + return ruby_num_interval_step_size(from, to, step, FALSE); } /* * call-seq: @@ -3466,7 +3466,7 @@ fix_size(VALUE fix) static VALUE int_upto_size(VALUE from, VALUE args) { - return num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(1), FALSE); + return ruby_num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(1), FALSE); } /* @@ -3513,7 +3513,7 @@ int_upto(VALUE from, VALUE to) static VALUE int_downto_size(VALUE from, VALUE args) { - return num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(-1), FALSE); + return ruby_num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(-1), FALSE); } /* |