Commit 9a634cba by Edward Thomson

index: explicitly cast new hash size to an int

parent 0d9a39ea
...@@ -1515,7 +1515,7 @@ int git_index__fill(git_index *index, const git_vector *source_entries) ...@@ -1515,7 +1515,7 @@ int git_index__fill(git_index *index, const git_vector *source_entries)
return 0; return 0;
git_vector_size_hint(&index->entries, source_entries->length); 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_vector_foreach(source_entries, i, source_entry) {
git_index_entry *entry = NULL; git_index_entry *entry = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment