From 9a634cba85747b8b86b5c91c1420aa6688d61180 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 12 Feb 2016 10:03:29 -0800 Subject: [PATCH] index: explicitly cast new hash size to an int --- src/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.c b/src/index.c index 081a1ea59..aced53225 100644 --- a/src/index.c +++ b/src/index.c @@ -1515,7 +1515,7 @@ int git_index__fill(git_index *index, const git_vector *source_entries) return 0; git_vector_size_hint(&index->entries, source_entries->length); - git_idxmap_resize(index->entries_map, source_entries->length * 1.3); + git_idxmap_resize(index->entries_map, (khint_t)(source_entries->length * 1.3)); git_vector_foreach(source_entries, i, source_entry) { git_index_entry *entry = NULL;