diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-11-01 19:31:02 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-11-01 20:36:09 +0400 |
commit | 51a3dfb5958e11acf3294e8f740c3ebd777c48a9 (patch) | |
tree | 33799279d9af84d165c9baf4b84a184de47c81a5 /src/pack.c | |
parent | 3343b5ffd37d25fa9f55c23c417cf761a7849e9f (diff) |
pack: `__object_header` always returns unsigned values
Diffstat (limited to 'src/pack.c')
-rw-r--r-- | src/pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pack.c b/src/pack.c index 51fbc4e9d..644b2d465 100644 --- a/src/pack.c +++ b/src/pack.c @@ -372,7 +372,7 @@ static unsigned char *pack_window_open( * - each byte afterwards: low seven bits are size continuation, * with the high bit being "size continues" */ -int git_packfile__object_header(unsigned char *hdr, size_t size, git_otype type) +size_t git_packfile__object_header(unsigned char *hdr, size_t size, git_otype type) { unsigned char *hdr_base; unsigned char c; @@ -392,7 +392,7 @@ int git_packfile__object_header(unsigned char *hdr, size_t size, git_otype type) } *hdr++ = c; - return (int)(hdr - hdr_base); + return (hdr - hdr_base); } |