This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/range.c b/range.c | |
index ebd0811..8cb4da8 100644 | |
--- a/range.c | |
+++ b/range.c | |
@@ -419,11 +419,21 @@ range_step(int argc, VALUE *argv, VALUE range) | |
if (!rb_obj_is_kind_of(step, rb_cNumeric)) { | |
step = rb_to_int(step); | |
} | |
- if (rb_funcall(step, '<', 1, INT2FIX(0))) { | |
- rb_raise(rb_eArgError, "step can't be negative"); |
NewerOlder