Skip to content

Commit 09c0c8a

Browse files
committed
Pass CR_UNKNOWN since it's unused anyway
1 parent d4397f1 commit 09c0c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/core/rope/RopeNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ protected Rope withEncodingSameEncoding(Rope rope, Encoding encoding) {
10541054

10551055
@Specialization(guards = "rope.getEncoding() != encoding")
10561056
protected Rope nativeRopeWithEncoding(NativeRope rope, Encoding encoding) {
1057-
return rope.withEncoding(encoding, rope.getCodeRange());
1057+
return rope.withEncoding(encoding, CodeRange.CR_UNKNOWN);
10581058
}
10591059

10601060
@Specialization(

0 commit comments

Comments
 (0)