Remove dead code from lpStringToInt64() (#8863)

This commit is contained in:
sundb 2021-04-27 07:40:58 +08:00 committed by GitHub
parent 4bfcf4654a
commit bcf1b384e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,9 +183,6 @@ int lpStringToInt64(const char *s, unsigned long slen, int64_t *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;
}