From: David Neto Date: Mon, 31 Oct 2016 21:02:45 +0000 (-0400) Subject: Use std::atoi instead of std::stoi X-Git-Tag: upstream/11.4.0~1430^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e301f67828efa18b37ee3d2144951ab434402767;p=platform%2Fupstream%2Fglslang.git 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. --- 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;