Skip to content

Commit

Permalink
Update gpr_buffer.c
Browse files Browse the repository at this point in the history
Removed an incorrect cast.
  • Loading branch information
dnewman-gpsw committed Jun 29, 2018
1 parent fcd435f commit acf3fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib/common/private/gpr_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int read_from_file(gpr_buffer* buffer, const char* file_path, gpr_malloc malloc_
}

fseek (fIN, 0, SEEK_END);
buffer->size = (int32_t) ftell(fIN);
buffer->size = (size_t) ftell(fIN);
rewind (fIN);

buffer->buffer = malloc_function(buffer->size);
Expand Down

0 comments on commit acf3fd8

Please sign in to comment.