diff options
author | Edward Thomson <ethomson@github.com> | 2016-02-12 10:03:29 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-02-16 11:50:46 +0000 |
commit | 9a634cba85747b8b86b5c91c1420aa6688d61180 (patch) | |
tree | bd939531cef80da1f73b35c467260560e67805d3 | |
parent | 0d9a39eaf5e7f85d1e11445cd4f9cea2291cb187 (diff) | |
download | libgit2-9a634cba85747b8b86b5c91c1420aa6688d61180.tar.gz |
index: explicitly cast new hash size to an int
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |