Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyString.java
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ private int strLength(ByteList bytes) {
}

private int strLength(ByteList bytes, Encoding enc) {
if (isCodeRangeValid() && enc instanceof UTF8Encoding) return StringSupport.utf8Length(value);
if (isCodeRangeValid() && enc instanceof UTF8Encoding) return StringSupport.utf8Length(bytes);

long lencr = strLengthWithCodeRange(bytes, enc);
int cr = unpackArg(lencr);

0 comments on commit 9e53642

Please sign in to comment.