From 3343b5ffd37d25fa9f55c23c417cf761a7849e9f Mon Sep 17 00:00:00 2001 From: Linquize Date: Thu, 31 Oct 2013 22:59:42 +0800 Subject: Fix warning on win64 --- src/indexer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/indexer.c') 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 */ -- cgit v1.2.3