fix bug in hex integer parse

This commit is contained in:
localvar 2019-08-14 19:11:51 +08:00
parent 62f9a90f9c
commit 09e6094643
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ int64_t strnatoi(char *num, int32_t len) {
} else {
return 0;
}
ret = dig * base;
ret += dig * base;
}
} else {
for (i = len - 1; i >= 0; --i, base *= 10) {