diff --git a/include/common.h b/include/common.h index 88322ca..c017d4c 100644 --- a/include/common.h +++ b/include/common.h @@ -392,7 +392,7 @@ inline bool str2uint(const char* str, uint64_t* res) inline bool str2double(const std::string& str, double* res) {return str2double(str.c_str(),res);} inline bool str2int(const std::string& str, int64_t* res) {return str2int(str.c_str(),res);} -inline bool str2uint(const std::string& str, int64_t* res) {return str2uint(str.c_str(),res);} +inline bool str2uint(const std::string& str, uint64_t* res) {return str2uint(str.c_str(),res);} inline void tolower(std::string& str) {for(auto& p: str) p=tolower(p);} inline void tolower(std::string* str) {for(auto& p:*str) p=tolower(p);}