removing redundant check

This commit is contained in:
dsomeshwar 2018-07-21 23:42:08 +05:30
parent 1c95c07596
commit bb5b8b3a6f

View File

@ -368,9 +368,6 @@ int string2ll(const char *s, size_t slen, long long *value) {
if (p[0] >= '1' && p[0] <= '9') {
v = p[0]-'0';
p++; plen++;
} else if (p[0] == '0' && slen == 1) {
*value = 0;
return 1;
} else {
return 0;
}