X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diffcore-break.c;h=9c19b8cab778362b9d369135e743fb232a7cd295;hb=ed82edc402c271a707da632083f1f4c19155d573;hp=acb18db1db27dc29fdb76bd519174aa56f56121d;hpb=0f2ca9d5c99436d048bfe0a7161b4365a731938f;p=git.git diff --git a/diffcore-break.c b/diffcore-break.c index acb18db1d..9c19b8cab 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -89,7 +89,7 @@ static int should_break(struct diff_filespec *src, * merge the surviving pair together if the score is * less than the minimum, after rename/copy runs. */ - *merge_score_p = src_removed * MAX_SCORE / src->size; + *merge_score_p = (int)(src_removed * MAX_SCORE / src->size); /* Extent of damage, which counts both inserts and * deletes.