Use std::atoi instead of std::stoi
[platform/upstream/glslang.git] / StandAlone / ResourceLimits.cpp
index 10ede09..e22ec80 100644 (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;