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:
arseny.kapoulkine 2010-08-03 09:30:46 +00:00
parent f533923f1f
commit cab68ab328

View File

@ -2377,7 +2377,9 @@ namespace pugi
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)
++it;