Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-10-31 18:59:42 +0400
committerVicent Marti <tanoku@gmail.com>2013-11-01 20:36:04 +0400
commit3343b5ffd37d25fa9f55c23c417cf761a7849e9f (patch)
treee3d2155c004ff26dc84ada5bcb84cc51a4cc075a /src/indexer.c
parentab44c62e548373c1494e967f54720faa06ce38b7 (diff)
Fix warning on win64
Diffstat (limited to 'src/indexer.c')
-rw-r--r--src/indexer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 9f55c8b2c..64a9074a1 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -632,7 +632,8 @@ static int inject_object(git_indexer_stream *idx, git_oid *id)
git_buf buf = GIT_BUF_INIT;
git_off_t entry_start;
const void *data;
- size_t len, hdr_len;
+ size_t len;
+ int hdr_len;
int error;
entry = git__calloc(1, sizeof(*entry));
@@ -660,7 +661,7 @@ static int inject_object(git_indexer_stream *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 */