summaryrefslogtreecommitdiff
path: root/src/pugixpath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r--src/pugixpath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index d11a7ca..d409655 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -768,7 +768,7 @@ namespace pugi
{
if (begin == end) return;
- size_t count = std::distance(begin, end);
+ size_t count = end - begin;
size_t size = m_end - m_begin;
size_t capacity = m_eos - m_begin;