diff options
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1864,20 +1864,10 @@ ruby_num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl) if (NIL_P(step)) { \ step = INT2FIX(1); \ } \ - else { \ - if (!rb_obj_is_kind_of(step, rb_cNumeric)) { \ - rb_raise(rb_eTypeError, "step must be numeric"); \ - } \ - } \ desc = negative_int_p(step); \ if (NIL_P(to)) { \ to = desc ? DBL2NUM(-INFINITY) : DBL2NUM(INFINITY); \ } \ - else { \ - if (!rb_obj_is_kind_of(to, rb_cNumeric)) { \ - rb_raise(rb_eTypeError, "limit must be numeric"); \ - } \ - } \ } while (0) #define NUM_STEP_GET_INF(to, desc, inf) do { \ |