forked from github/server
simplify atoi36, it does not need to eat whitespace
This commit is contained in:
parent
2e3c0db02a
commit
b631f539ce
|
@ -32,9 +32,6 @@ int atoi36(const char *str)
|
||||||
assert(s);
|
assert(s);
|
||||||
if (!(*s))
|
if (!(*s))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
while (isxspace(*(unsigned char *)s))
|
|
||||||
++s;
|
|
||||||
if (*s == '-') {
|
if (*s == '-') {
|
||||||
sign = -1;
|
sign = -1;
|
||||||
++s;
|
++s;
|
||||||
|
|
Loading…
Reference in New Issue