From 9adf67be3a3700c3ae715bb27bad0e1b00412bf1 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 7 Jul 2010 17:10:51 +0000 Subject: Fixed strequalrange so that it matches the description (this also fixes first_element_by_path prefix bug), added more first_element_by_path tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@570 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixpath.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pugixpath.cpp') diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index f5663bd..6239ed2 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -940,9 +940,7 @@ namespace pugi { size_t length = static_cast(end - begin); - if (!impl::strequalrange(other, begin, length)) return false; - - return other[length] == 0; + return impl::strequalrange(other, begin, length); } }; -- cgit v1.2.3