Commit 983bd842 authored by Guolin Ke's avatar Guolin Ke
Browse files

try to fix #780

parent 73e689b7
...@@ -324,7 +324,7 @@ inline static std::string ArrayToString(const std::vector<T>& arr, size_t n, cha ...@@ -324,7 +324,7 @@ inline static std::string ArrayToString(const std::vector<T>& arr, size_t n, cha
template<typename T, bool is_float> template<typename T, bool is_float>
struct __StringToTHelper { struct __StringToTHelper {
T operator()(const std::string& str) const { T operator()(const std::string& str) const {
return static_cast<T>(std::stol(str)); return static_cast<T>(std::stoll(str));
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment