Skip to content

Commit

Permalink
C ruby file write modifications
Browse files Browse the repository at this point in the history
Signed-off-by: UpeksheJay <upekshej.11@cse.mrt.ac.lk>
  • Loading branch information
UpeksheJay committed Aug 17, 2016
1 parent 31884e4 commit c349c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nio4r/bytebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static VALUE NIO_ByteBuffer_readnext(VALUE self, VALUE amount)
return rb_str_new2(tempArray);
}

static VALUE NIO_ByteBuffer_writeTo(VALUE self, VALUE file){
static VALUE NIO_ByteBuffer_writeTo(VALUE self, VALUE io){
struct NIO_ByteBuffer *byteBuffer;
Data_Get_Struct(self, struct NIO_ByteBuffer, byteBuffer);
int size = byteBuffer->limit + 1 - byteBuffer->position;
Expand Down

0 comments on commit c349c0a

Please sign in to comment.