Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix decl-after-statement

C90, I do not like you.
  • Loading branch information...
commit 5fc18317cda24412c4f728085e5bb9c06fa28c48 1 parent 1d6430d
Brian Gernhardt Benabik authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/io/api.c
6 src/io/api.c
View
@@ -786,12 +786,12 @@ Parrot_io_readall_s(PARROT_INTERP, ARGMOD(PMC *handle))
return s;
}
else {
- total_size -= vtable->get_position(interp, handle);
+ size_t remaining_size = total_size - vtable->get_position(interp, handle);
IO_BUFFER * const read_buffer = IO_GET_READ_BUFFER(interp, handle);
- STRING * const s = io_get_new_empty_string(interp, encoding, -1, total_size);
+ STRING * const s = io_get_new_empty_string(interp, encoding, -1, remaining_size);
io_sync_buffers_for_read(interp, handle, vtable, read_buffer, write_buffer);
- io_read_chars_append_string(interp, s, handle, vtable, read_buffer, total_size);
+ io_read_chars_append_string(interp, s, handle, vtable, read_buffer,remaining_size);
return s;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.