From cab68ab3289fd8f8ff2a92a3bf74ed8195ce2b7c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 3 Aug 2010 09:30:46 +0000 Subject: XPath: Added a workaround for DMC bug git-svn-id: http://pugixml.googlecode.com/svn/trunk@622 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixpath.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 56775af..efb170b 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -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; -- cgit v1.2.3