소스 검색

Fixed bug in util::parseULLIntNoThrow()

Tatsuhiro Tsujikawa 14 년 전
부모
커밋
bc9fb7cb65
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/util.cc

+ 1 - 1
src/util.cc

@@ -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()) {