Skip to content

Commit 567cdb9

Browse files
committed
Handle initialising range objects with nil for exclude end.
1 parent 30a99c9 commit 567cdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/range.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def initialize(first, last, exclude_end = false)
4343
end
4444
end
4545

46-
Primitive.range_initialize self, first, last, exclude_end
46+
Primitive.range_initialize self, first, last, Primitive.as_boolean(exclude_end)
4747
end
4848
private :initialize
4949

0 commit comments

Comments
 (0)