diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:17:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:17:23 -0800 |
commit | e8c23511578fc0c708eb50899e294da454420ac6 (patch) | |
tree | 2c2690b92b28b4e46dbc3551e735d5bf3c0b30b9 | |
parent | 8390d5cda9a4da982837bac1822d9ab3cf3f7ad9 (diff) | |
parent | 83915ba5219955e8c0b747ec413afe4f78bea289 (diff) | |
download | git-e8c23511578fc0c708eb50899e294da454420ac6.tar.gz |
Merge branch 'rs/maint-config-use-labs' into maint
* rs/maint-config-use-labs:
use labs() for variables of type long instead of abs()
-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; } |