XPath: Added a workaround for DMC bug
git-svn-id: http://pugixml.googlecode.com/svn/trunk@622 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
f533923f1f
commit
cab68ab328
@ -2377,7 +2377,9 @@ namespace pugi
|
|||||||
|
|
||||||
for (string_t::iterator it = s.begin(); it != s.end(); )
|
for (string_t::iterator it = s.begin(); it != s.end(); )
|
||||||
{
|
{
|
||||||
string_t::size_type pos = from.find(*it);
|
char_t ch = *it; // explicitly store to local to work around DMC bug (it loads 4 bytes from &*it otherwise)
|
||||||
|
|
||||||
|
string_t::size_type pos = from.find(ch);
|
||||||
|
|
||||||
if (pos == string_t::npos)
|
if (pos == string_t::npos)
|
||||||
++it;
|
++it;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user