Skip to content

Commit

Permalink
Fix typo in Parrot_io_read_byte_buffer_pmc. This typo was causing a f…
Browse files Browse the repository at this point in the history
…ailure found by moritz++
  • Loading branch information
Whiteknight committed Jul 9, 2012
1 parent 05ee209 commit 96d2ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ Parrot_io_read_byte_buffer_pmc(PARROT_INTERP, ARGMOD(PMC *handle),
bytes_read = Parrot_io_buffer_read_b(interp, read_buffer, handle, vtable, content,
byte_length);
if (bytes_read != byte_length)
VTABLE_set_integer_native(interp, buffer, byte_length);
VTABLE_set_integer_native(interp, buffer, bytes_read);
if (bytes_read == 0)
vtable->set_eof(interp, handle, 1);
vtable->adv_position(interp, handle, bytes_read);
Expand Down

0 comments on commit 96d2ffd

Please sign in to comment.