summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-21 00:25:24 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-21 00:25:24 +0100
commit152e46a6dac1f89f1c666ffa742671b330e6d6d5 (patch)
tree08ea68367b3eef73960e6f382af376fdd0e6613e /src/utf8_iterator.hh
parent55959f2cb151737b882f3aa8fe8d3192d0dca6ea (diff)
Make utif_iterator more tolerant to invalid utf8
Diffstat (limited to 'src/utf8_iterator.hh')
-rw-r--r--src/utf8_iterator.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh
index 4fa206b3..cc1d3b47 100644
--- a/src/utf8_iterator.hh
+++ b/src/utf8_iterator.hh
@@ -104,7 +104,7 @@ public:
check_invariant();
other.check_invariant();
CharCount dist = 0;
- while (other.m_it != m_it)
+ while (other.m_it < m_it)
{
++dist;
++other;