Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Second batch for 2.3 cycle
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index 15a298357796ffa80f7fb2258e55cf95be0b8895..ae1398f4f486e65adbeb8e5b82513febf31e6dd2 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-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 =
l
abs(val);
uval *= factor;
- if (uval > max || abs(val) > uval) {
+ if (uval > max ||
l
abs(val) > uval) {
errno = ERANGE;
return 0;
}