[hackers] [sbase] seq: Use INT_MIN as opposed to -INT_MAX || sin
commit 652fd30185bbbca896b8b08815da17166d3bab75
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 Fri Jan 30 2015 - 17:48:20 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 30 2015 - 18:00:14 CET