Skip to content

Commit fd9d4e2

Browse files
committed
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.
1 parent 751eb46 commit fd9d4e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static int find_unique_abbrev_size(
366366
int *out,
367367
git_repository *repo,
368368
const git_oid *oid_in,
369-
int abbreviated_size)
369+
unsigned int abbreviated_size)
370370
{
371371
size_t size = abbreviated_size;
372372
git_odb *odb;
@@ -401,7 +401,7 @@ static int show_suffix(
401401
int depth,
402402
git_repository *repo,
403403
const git_oid* id,
404-
size_t abbrev_size)
404+
unsigned int abbrev_size)
405405
{
406406
int error, size = 0;
407407

0 commit comments

Comments
 (0)