Make utif_iterator more tolerant to invalid utf8

This commit is contained in:
Maxime Coste 2014-05-21 00:25:24 +01:00
parent 55959f2cb1
commit 152e46a6da

View File

@ -104,7 +104,7 @@ public:
check_invariant(); check_invariant();
other.check_invariant(); other.check_invariant();
CharCount dist = 0; CharCount dist = 0;
while (other.m_it != m_it) while (other.m_it < m_it)
{ {
++dist; ++dist;
++other; ++other;