diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-12 13:06:33 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 09:34:20 +0200 |
commit | 77b339f7b6c7e167ecaf9374eb6876b498d8cb83 (patch) | |
tree | 2067451017501f2d2411442370a71997c715e52b /src/odb.h | |
parent | f85a9c2767b43f35904bf39858488a4b7bc304e8 (diff) | |
download | libgit2-cmn/stream-size.tar.gz |
odb: make the writestream's size a git_off_tcmn/stream-size
Restricting files to size_t is a silly limitation. The loose backend
writes to a file directly, so there is no issue in using 63 bits for the
size.
We still assume that the header is going to fit in 64 bytes, which does
mean quite a bit smaller files due to the run-length encoding, but it's
still a much larger size than you would want Git to handle.
Diffstat (limited to 'src/odb.h')
-rw-r--r-- | src/odb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj); /* * Format the object header such as it would appear in the on-disk object */ -int git_odb__format_object_header(char *hdr, size_t n, size_t obj_len, git_otype obj_type); +int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type); /* * Hash an open file descriptor. * This is a performance call when the contents of a fd need to be hashed, |