Unverified Commit bcf1b384 authored by sundb's avatar sundb Committed by GitHub
Browse files

Remove dead code from lpStringToInt64() (#8863)

parent 4bfcf465
...@@ -183,9 +183,6 @@ int lpStringToInt64(const char *s, unsigned long slen, int64_t *value) { ...@@ -183,9 +183,6 @@ int lpStringToInt64(const char *s, unsigned long slen, int64_t *value) {
if (p[0] >= '1' && p[0] <= '9') { if (p[0] >= '1' && p[0] <= '9') {
v = p[0]-'0'; v = p[0]-'0';
p++; plen++; p++; plen++;
} else if (p[0] == '0' && slen == 1) {
*value = 0;
return 1;
} else { } else {
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment