Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'dl/config-alias-doc' into maint
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index 296a6d9cc4110bd7fcef542ac9cc9cfe04d4f4d4..01c6e9df23c6a8f35fc70dcfc1275d4f3f9a1f2b 100644
(file)
--- a/
config.c
+++ b/
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;
}