Skip to content

Commit

Permalink
Derp. Fixes jruby/jruby#2764.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 29, 2015
1 parent d772f2b commit 85897b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jcodings/transcode/Transcoding.java
Expand Up @@ -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++];
}
Expand Down

0 comments on commit 85897b6

Please sign in to comment.