Commit b44a8092 authored by Alexander Lapshin's avatar Alexander Lapshin

fixed int64 json miss

parent 1f39e56e
......@@ -671,6 +671,9 @@ static bool loadjson(const jsonval& parent, const std::string& key, bool& value,
if (a.IsInt()) {
value = a.GetInt();
}
if (a.IsInt64()) {
value = a.GetInt64();
}
else if (a.IsBool()) {
value = a.GetBool();
}
......@@ -716,6 +719,10 @@ static bool loadjson(const jsonval& parent, const std::string& key, std::string&
std::stringstream stream;
stream << a.GetInt();
value = stream.str();
}else if (a.IsInt64()) {
std::stringstream stream;
stream << a.GetInt64();
value = stream.str();
}
else {
throw Exp() << "unexpected type";
......
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