summaryrefslogtreecommitdiff
path: root/src/pack.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-09-08 14:20:19 -0700
committerVicent Martí <tanoku@gmail.com>2011-09-08 14:20:19 -0700
commit3f3f6225f8237e974b135de30eaac731c929936e (patch)
tree74e79db35482c110aa9bf50cb06ce23dc045275b /src/pack.c
parent564f0f7be1d962fdb3bdc42e7e47db9c1ce960ec (diff)
parentbac47f1ff8c6684671c67000c747a6b0a7f2c6dc (diff)
downloadlibgit2-3f3f6225f8237e974b135de30eaac731c929936e.tar.gz
Merge pull request #391 from sschuberth/development
Warning fixes
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index d882516be..d5e069a93 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -404,7 +404,7 @@ int packfile_unpack_compressed(
memset(&stream, 0, sizeof(stream));
stream.next_out = buffer;
- stream.avail_out = size + 1;
+ stream.avail_out = (uInt)size + 1;
st = inflateInit(&stream);
if (st != Z_OK) {