Skip to content

Commit 366bb5d

Browse files
committed
Modify string and clear coderange after write
See #77
1 parent 8f47d52 commit 366bb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/java/org/jruby/ext/stringio/StringIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ private long stringIOWrite(ThreadContext context, Ruby runtime, IRubyObject arg)
16761676
}
16771677
} else {
16781678
strioExtend(context, pos, len);
1679-
modifyString(ptr.string);
1679+
modifyString(myString);
16801680
ByteList ptrByteList = myString.getByteList();
16811681
System.arraycopy(strByteList.getUnsafeBytes(), strByteList.getBegin(), ptrByteList.getUnsafeBytes(), ptrByteList.begin() + pos, len);
16821682
}

0 commit comments

Comments
 (0)