sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit c7f2848a35bed670501f3dee74cc82279128f6ff
parent b66c44b24e5fc55d9d9ddd1bdac5920ad4c2f944
Author: sin <sin@2f30.org>
Date:   Fri, 30 Jan 2015 16:47:00 +0000

seq: Use INT_MIN as opposed to -INT_MAX

Diffstat:
seq.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/seq.c b/seq.c @@ -98,7 +98,7 @@ digitsleft(const char *d) if (*d == '+') d++; 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); }