]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-rename.c
ci: fix GCC install in the Travis CI GCC OSX job
[thirdparty/git.git] / diffcore-rename.c
index 994609ed58a512e9621e1882ef899577a0699f4c..531d7adeafe0e218de2a56a9dbb8b4156d2d4921 100644 (file)
@@ -284,7 +284,7 @@ static int find_identical_files(struct hashmap *srcs,
         */
        p = hashmap_get_entry_from_hash(srcs, hash, NULL,
                                        struct file_similarity, entry);
-       hashmap_for_each_entry_from(srcs, p, struct file_similarity, entry) {
+       hashmap_for_each_entry_from(srcs, p, entry) {
                int score;
                struct diff_filespec *source = p->filespec;
 
@@ -584,7 +584,7 @@ void diffcore_rename(struct diff_options *options)
        stop_progress(&progress);
 
        /* cost matrix sorted by most to least similar pair */
-       QSORT(mx, dst_cnt * NUM_CANDIDATE_PER_DST, score_compare);
+       STABLE_QSORT(mx, dst_cnt * NUM_CANDIDATE_PER_DST, score_compare);
 
        rename_count += find_renames(mx, dst_cnt, minimum_score, 0);
        if (detect_rename == DIFF_DETECT_COPY)