mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
"for i in (1..12/5); p i ; end" should not print "3"
This commit is contained in:
+3
-2
@@ -23,8 +23,9 @@ class Range
|
||||
val = val.succ
|
||||
end
|
||||
|
||||
block.call(val) unless exclude_end?
|
||||
|
||||
if not exclude_end? and (val <=> last) == 0
|
||||
block.call(val)
|
||||
end
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user