Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jcodings/transcode/Transcoding.java
Original file line number Diff line number Diff line change
@@ -471,7 +471,7 @@ private EConvResult transcodeRestartable0(final byte[] in_bytes, Ptr in_pos, fin
} else {
writeBuffLen = tr.finish(state, writeBuf, 0, writeBuf.length);
writeBuffOff = 0;
while (writeBuffOff <= writeBuffLen) {
while (writeBuffOff < writeBuffLen) {
if (SUSPEND == SUSPEND_OBUF(this, out_stop, in_bytes, in_p, inchar_start, in_pos, out_pos, out_p, readagain_len, RESUME_FINISH_WRITEBUF)) return suspendResult;
out_bytes[out_p++] = writeBuf[writeBuffOff++];
}

0 comments on commit 85897b6

Please sign in to comment.