summaryrefslogtreecommitdiff
path: root/src/indexer.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-11-01 09:38:03 -0700
committerRussell Belfer <rb@github.com>2013-11-01 09:38:03 -0700
commit948f00b4e79bb60c68e03342500013246e642ae6 (patch)
treeecace4b5262169a801eda0f142759fcc03010e4f /src/indexer.c
parentac5e507cec8e075a2095abcf4c8c82a01b82a5f9 (diff)
parentd3ed2106c137c1117f70499544868db21d9ea715 (diff)
downloadlibgit2-948f00b4e79bb60c68e03342500013246e642ae6.tar.gz
Merge pull request #1933 from libgit2/vmg/gcc-warnings
Warnings for Windows x64 (MSVC) and GCC on Linux
Diffstat (limited to 'src/indexer.c')
-rw-r--r--src/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 07d0073c8..0873c8cf0 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -660,7 +660,7 @@ static int inject_object(git_indexer *idx, git_oid *id)
/* And then the compressed object */
git_filebuf_write(&idx->pack_file, buf.ptr, buf.size);
idx->pack->mwf.size += buf.size;
- entry->crc = htonl(crc32(entry->crc, (unsigned char *)buf.ptr, buf.size));
+ entry->crc = htonl(crc32(entry->crc, (unsigned char *)buf.ptr, (uInt)buf.size));
git_buf_free(&buf);
/* Write a fake trailer so the pack functions play ball */