From fd9d4e28b28df3677d2062f5172ce190a0b86452 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 21 Jan 2019 11:29:16 +0000 Subject: describe: don't mix and match abbreviated size types The git_describe_format_options.abbreviated_size type is an unsigned int. There's no need for it to be anything else; keep it what it is. --- src/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/describe.c b/src/describe.c index 7e57d64e7..893ca646e 100644 --- a/src/describe.c +++ b/src/describe.c @@ -366,7 +366,7 @@ static int find_unique_abbrev_size( int *out, git_repository *repo, const git_oid *oid_in, - int abbreviated_size) + unsigned int abbreviated_size) { size_t size = abbreviated_size; git_odb *odb; @@ -401,7 +401,7 @@ static int show_suffix( int depth, git_repository *repo, const git_oid* id, - size_t abbrev_size) + unsigned int abbrev_size) { int error, size = 0; -- cgit v1.2.1