Skip to content

Commit d15644f

Browse files
committed
Merge branch 'rs/range-diff-custom-abbrev-fix'
Hotfix for a topic that is already in 'master'. * rs/range-diff-custom-abbrev-fix: range-diff: avoid compiler warning when char is unsigned
2 parents ef7d4f5 + d9165be commit d15644f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

range-diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static void output_pair_header(struct diff_options *diffopt,
383383
const char *color_new = diff_get_color_opt(diffopt, DIFF_FILE_NEW);
384384
const char *color_commit = diff_get_color_opt(diffopt, DIFF_COMMIT);
385385
const char *color;
386-
char abbrev = diffopt->abbrev;
386+
int abbrev = diffopt->abbrev;
387387

388388
if (abbrev < 0)
389389
abbrev = DEFAULT_ABBREV;

0 commit comments

Comments
 (0)