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.
This commit is contained in:
David Neto 2016-10-31 17:02:45 -04:00
parent e19e68d431
commit e301f67828

View File

@ -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;