seq: Use INT_MIN as opposed to -INT_MAX

This commit is contained in:
sin 2015-01-30 16:47:00 +00:00
parent b66c44b24e
commit c7f2848a35

2
seq.c
View File

@ -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);
} }