From e301f67828efa18b37ee3d2144951ab434402767 Mon Sep 17 00:00:00 2001 From: David Neto Date: Mon, 31 Oct 2016 17:02:45 -0400 Subject: [PATCH] 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. --- StandAlone/ResourceLimits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StandAlone/ResourceLimits.cpp b/StandAlone/ResourceLimits.cpp index 10ede09..e22ec80 100644 --- a/StandAlone/ResourceLimits.cpp +++ b/StandAlone/ResourceLimits.cpp @@ -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; -- 2.7.4