diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:42:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:42:50 -0800 |
commit | 8aae35f658716fe07d4d5769e351972caffc6e23 (patch) | |
tree | de1509ba3084dbecad837933d9010dd029f45419 /config.c | |
parent | 2528ff079c9dd8a47483d841f53cd93ec1044a72 (diff) | |
parent | 83915ba5219955e8c0b747ec413afe4f78bea289 (diff) | |
download | git-8aae35f658716fe07d4d5769e351972caffc6e23.tar.gz |
Merge branch 'rs/maint-config-use-labs'
* rs/maint-config-use-labs:
use labs() for variables of type long instead of abs()
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -506,9 +506,9 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max) errno = EINVAL; return 0; } - uval = abs(val); + uval = labs(val); uval *= factor; - if (uval > max || abs(val) > uval) { + if (uval > max || labs(val) > uval) { errno = ERANGE; return 0; } |