Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -433,7 +433,7 @@ public Object getIndex(VirtualFrame frame, DynamicObject string, int index, Obje
final int stringLength = rope.characterLength();
int normalizedIndex = StringOperations.normalizeIndex(stringLength, index);

if (normalizedIndex < 0 || normalizedIndex >= rope.byteLength()) {
if (normalizedIndex < 0 || normalizedIndex >= rope.characterLength()) {
outOfBounds.enter();
return nil();
} else {

0 comments on commit 77a01b4

Please sign in to comment.