* fixed major bug in string->uint64 conversion

This commit is contained in:
false_genesis 2008-06-26 21:07:24 +00:00
parent e52420ae52
commit 489c4c3b76

View File

@ -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;