Skip to content

Commit f394de3

Browse files
committed
Off by one bug.
1 parent e6eac77 commit f394de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def [](idx)
272272
# and the like with __offset_to_pos(), we return nil.
273273
%s(if (or (or
274274
(eq @ptr 0)
275-
(gt idx @len)
275+
(ge idx @len)
276276
)
277277
(lt idx 0))
278278
(return nil))

0 commit comments

Comments
 (0)