Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a634cb

Browse files
author
Edward Thomson
committed
index: explicitly cast new hash size to an int
1 parent 0d9a39e commit 9a634cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ int git_index__fill(git_index *index, const git_vector *source_entries)
15151515
return 0;
15161516

15171517
git_vector_size_hint(&index->entries, source_entries->length);
1518-
git_idxmap_resize(index->entries_map, source_entries->length * 1.3);
1518+
git_idxmap_resize(index->entries_map, (khint_t)(source_entries->length * 1.3));
15191519

15201520
git_vector_foreach(source_entries, i, source_entry) {
15211521
git_index_entry *entry = NULL;

0 commit comments

Comments
 (0)