Skip to content
Permalink
Browse files

Merge pull request #2258 from dscho/gcc-9-gfw

Support compiling with GCC v9.x
  • Loading branch information...
dscho committed Jul 11, 2019
2 parents fcf334e + a034042 commit 271c090e89a9b85b0f9cde7e943e329019362ca8
Showing with 2 additions and 2 deletions.
  1. +2 −2 config.c
@@ -869,9 +869,9 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
errno = EINVAL;
return 0;
}
uval = labs(val);
uval = val < 0 ? -val : val;
uval *= factor;
if (uval > max || labs(val) > uval) {
if (uval > max || (val < 0 ? -val : val) > uval) {
errno = ERANGE;
return 0;
}

0 comments on commit 271c090

Please sign in to comment.
You can’t perform that action at this time.