Skip to content

Commit e8c2351

Browse files
committed
Merge branch 'rs/maint-config-use-labs' into maint
* rs/maint-config-use-labs: use labs() for variables of type long instead of abs()
2 parents 8390d5c + 83915ba commit e8c2351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
506506
errno = EINVAL;
507507
return 0;
508508
}
509-
uval = abs(val);
509+
uval = labs(val);
510510
uval *= factor;
511-
if (uval > max || abs(val) > uval) {
511+
if (uval > max || labs(val) > uval) {
512512
errno = ERANGE;
513513
return 0;
514514
}

0 commit comments

Comments
 (0)