* fixed major bug in string->uint64 conversion
This commit is contained in:
parent
e52420ae52
commit
489c4c3b76
@ -140,6 +140,8 @@ uint64 DefScriptTools::atoi64(std::string str)
|
||||
uint64 l = 0;
|
||||
for (size_t i = 0; i < str.size(); i++)
|
||||
{
|
||||
if(!isdigit(str[i]))
|
||||
return l;
|
||||
l = l * 10 + str[i] - 48;
|
||||
}
|
||||
return l;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user