Use strtoul instead of stoul for Android.
This commit is contained in:
parent
210c6bf4d8
commit
20daa7f64a
@ -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:
|
|||||||
// 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user