[hackers] [sbase] seq: Use INT_MIN as opposed to -INT_MAX || sin

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:25 +0100 (CET)

commit c7f2848a35bed670501f3dee74cc82279128f6ff
Author: sin <sin_AT_2f30.org>
Date: Fri Jan 30 16:47:00 2015 +0000

    seq: Use INT_MIN as opposed to -INT_MAX

diff --git a/seq.c b/seq.c
index 917c89a..1b17a58 100644
--- a/seq.c
+++ b/seq.c
_AT_@ -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);
 }
Received on Tue Mar 24 2015 - 23:53:25 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:04:52 CET