diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-12 15:18:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-12 15:18:23 -0700 |
commit | f056cde60e7b095edf1530554a8c9528bd8b374b (patch) | |
tree | 1507f5729cc2a2718b59712b0aac3a7350c2144f /diff.c | |
parent | 768d0fe0dadbffe722fa4b80b2180a4fcaf1c854 (diff) | |
parent | 42c78a216e751cfa2720c8276c9e9f2b81640e6b (diff) | |
download | git-f056cde60e7b095edf1530554a8c9528bd8b374b.tar.gz |
Merge branch 'rs/use-div-round-up'
Code cleanup.
* rs/use-div-round-up:
use DIV_ROUND_UP
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2095,7 +2095,7 @@ static void show_dirstat_by_line(struct diffstat_t *data, struct diff_options *o * bytes per "line". * This is stupid and ugly, but very cheap... */ - damage = (damage + 63) / 64; + damage = DIV_ROUND_UP(damage, 64); ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc); dir.files[dir.nr].name = file->name; dir.files[dir.nr].changed = damage; |