Fixed bug in util::parseULLIntNoThrow()

pull/4/head
Tatsuhiro Tsujikawa 2011-12-02 00:44:33 +09:00
parent dd8824ab11
commit bc9fb7cb65
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ int64_t parseLLInt(const std::string& s, int base)
bool parseULLIntNoThrow(uint64_t& res, const std::string& s, int base)
{
long int t;
long long int t;
if(parseLong(t, strtoll, s, base) &&
t >= 0 &&
t <= std::numeric_limits<int64_t>::max()) {