seq: Use INT_MIN as opposed to -INT_MAX
This commit is contained in:
parent
b66c44b24e
commit
c7f2848a35
2
seq.c
2
seq.c
|
@ -98,7 +98,7 @@ digitsleft(const char *d)
|
||||||
if (*d == '+')
|
if (*d == '+')
|
||||||
d++;
|
d++;
|
||||||
exp = strpbrk(d, "eE");
|
exp = strpbrk(d, "eE");
|
||||||
shift = exp ? estrtonum(&exp[1], -INT_MAX, INT_MAX) : 0;
|
shift = exp ? estrtonum(&exp[1], INT_MIN, INT_MAX) : 0;
|
||||||
|
|
||||||
return MAX(0, strspn(d, "-0123456789") + shift);
|
return MAX(0, strspn(d, "-0123456789") + shift);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user