Skip to content

Commit

Permalink
Correct comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Feb 14, 2014
1 parent 928fe39 commit 0066643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/syncfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ static MVMString * read_chars(MVMThreadContext *tc, MVMOSHandle *h, MVMint64 cha
MVMIOFileData *data = (MVMIOFileData *)h->body.data;
ensure_decode_stream(tc, data);

/* Pull data until we can read a line. */
/* Pull data until we can read the chars we want. */
do {
MVMString *result = MVM_string_decodestream_get_chars(tc, data->ds, chars);
if (result != NULL)
return result;
} while (read_to_buffer(tc, data, CHUNK_SIZE) > 0);

/* Reached end of file, or last (non-termianted) line. */
/* Reached end of file, so just take what we have. */
return MVM_string_decodestream_get_all(tc, data->ds);
}

Expand Down

0 comments on commit 0066643

Please sign in to comment.