parse-options: introduce precision handling for OPTION_UNSIGNED

This commit is the equivalent to the preceding commit, but instead of
introducing precision handling for `OPTION_INTEGER` we introduce it for
`OPTION_UNSIGNED`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2025-04-17 12:49:41 +02:00
committed by Junio C Hamano
parent 09705696f7
commit bc288c5929
6 changed files with 60 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
return 0;
}
static int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
{
if (value && *value) {
char *end;