Merge pull request #274 from antiagainst/stoul-strtoul
Use strtoul instead of stoul for Android.
This commit is contained in:
commit
fc6ac78567
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue