Commit 20daa7f6 by Lei Zhang

Use strtoul instead of stoul for Android.

parent 210c6bf4
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "propagateNoContraction.h" #include "propagateNoContraction.h"
#include <cstdlib>
#include <string> #include <string>
#include <tuple> #include <tuple>
#include <unordered_map> #include <unordered_map>
...@@ -663,7 +664,7 @@ protected: ...@@ -663,7 +664,7 @@ protected:
// Gets the struct dereference index that leads to 'precise' object. // Gets the struct dereference index that leads to 'precise' object.
ObjectAccessChain precise_accesschain_index_str = ObjectAccessChain precise_accesschain_index_str =
getFrontElement(remained_accesschain_); getFrontElement(remained_accesschain_);
unsigned precise_accesschain_index = std::stoul(precise_accesschain_index_str); unsigned precise_accesschain_index = strtoul(precise_accesschain_index_str.c_str(), nullptr, 10);
// Gets the node pointed by the accesschain index extracted before. // Gets the node pointed by the accesschain index extracted before.
glslang::TIntermTyped* potential_precise_node = glslang::TIntermTyped* potential_precise_node =
node->getSequence()[precise_accesschain_index]->getAsTyped(); node->getSequence()[precise_accesschain_index]->getAsTyped();
......
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