Commit e301f678 by David Neto

Use std::atoi instead of std::stoi

Some Android cross cross-compilers don't have std::stoi. E.g. i686-linux-android-g++ from Android NDK r10e don't have std::stoi.
parent e19e68d4
......@@ -263,7 +263,7 @@ void DecodeResourceLimits(TBuiltInResource* resources, char* config)
return;
}
const int value = std::stoi(valueStr);
const int value = std::atoi(valueStr.c_str());
if (tokenStr == "MaxLights")
resources->maxLights = value;
......
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