summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-05-13 12:11:55 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2015-05-13 12:11:55 -0400
commita6f2ceaf48ae7bb5ca125129adc9017c67979abf (patch)
treec244642408368fcfd7b6c57c1864c9da84d8acaa /src/blob.c
parent3e529e9d2dd2ae90d43612b9906f16c812101033 (diff)
parent77b339f7b6c7e167ecaf9374eb6876b498d8cb83 (diff)
downloadlibgit2-a6f2ceaf48ae7bb5ca125129adc9017c67979abf.tar.gz
Merge pull request #3118 from libgit2/cmn/stream-size
odb: make the writestream's size a git_off_t
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/blob.c b/src/blob.c
index 47216507b..07c4d92c8 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -76,10 +76,11 @@ static int write_file_stream(
int fd, error;
char buffer[FILEIO_BUFSIZE];
git_odb_stream *stream = NULL;
- ssize_t read_len = -1, written = 0;
+ ssize_t read_len = -1;
+ git_off_t written = 0;
if ((error = git_odb_open_wstream(
- &stream, odb, (size_t)file_size, GIT_OBJ_BLOB)) < 0)
+ &stream, odb, file_size, GIT_OBJ_BLOB)) < 0)
return error;
if ((fd = git_futils_open_ro(path)) < 0) {