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 | Merge branch 'js/windows-open-eisdir-error' into maint (diff) | |
parent | use labs() for variables of type long instead of abs() (diff) | |
download | tgif-e8c23511578fc0c708eb50899e294da454420ac6.tar.xz |
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; } |