From fc13d6586a591100c0ba19947469c1626822d379 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Tue, 27 Oct 2015 15:51:04 +1000 Subject: [PATCH] Fix incorrect parameter type. --- include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);}