Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/mapped_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ static VALUE sm_mapped_file_close(VALUE vself)
*/
static VALUE sm_mapped_file_read_window_data(VALUE vself, VALUE voffset, VALUE vlength)
{
size_t offset = NUM2INT(voffset);
size_t length = NUM2INT(vlength);
size_t offset = NUM2LONG(voffset);
size_t length = NUM2LONG(vlength);
char buff[length];
VALUE vsm_map;
simple_mmap_map *sm_map;
Expand Down