summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-21 11:29:16 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-25 22:47:39 +0000
commitfd9d4e28b28df3677d2062f5172ce190a0b86452 (patch)
tree93bdb1be7926ad08c55015a6c4fc85660f56a077
parent751eb46247e3d9251de0e6da126aac8fa96b3ad2 (diff)
downloadlibgit2-fd9d4e28b28df3677d2062f5172ce190a0b86452.tar.gz
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.
-rw-r--r--src/describe.c4
1 files 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;