diff options
author | Linquize <linquize@yahoo.com.hk> | 2013-10-31 18:59:42 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-11-01 20:36:04 +0400 |
commit | 3343b5ffd37d25fa9f55c23c417cf761a7849e9f (patch) | |
tree | e3d2155c004ff26dc84ada5bcb84cc51a4cc075a /src/indexer.c | |
parent | ab44c62e548373c1494e967f54720faa06ce38b7 (diff) |
Fix warning on win64
Diffstat (limited to 'src/indexer.c')
-rw-r--r-- | src/indexer.c | 5 |
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 */ |