Use std::stoll to convert JSON values

This commit is contained in:
FeRD (Frank Dana)
2019-08-10 11:31:08 -04:00
parent e95d18476c
commit 141e6ba61e
6 changed files with 9 additions and 8 deletions

View File

@@ -71,5 +71,5 @@ void CacheBase::SetJsonValue(Json::Value root) {
// Set data from Json (if key is found)
if (!root["max_bytes"].isNull())
max_bytes = atoll(root["max_bytes"].asString().c_str());
max_bytes = std::stoll(root["max_bytes"].asString());
}