diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-05-19 20:20:42 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-05-19 20:20:42 +0100 |
| commit | e1703204f8ca8e6cbc55ef609be99816ae5ec6d6 (patch) | |
| tree | e708fa4c121aaf736224936812c1c056568b64e7 /src | |
| parent | fb01c8c377fd65f82ce8d22ec088b82a870381cd (diff) | |
fix bug in utf8_iterator
Diffstat (limited to 'src')
| -rw-r--r-- | src/utf8_iterator.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh index 46e277ed..6e8f760b 100644 --- a/src/utf8_iterator.hh +++ b/src/utf8_iterator.hh @@ -117,7 +117,7 @@ private: void invalidate_value() { m_value = -1; } CodepointType get_value() const { - if (m_value == -1) + if (m_value == (CodepointType)-1) m_value = (CodepointType)utf8::codepoint<InvalidPolicy>(m_it, m_end); return m_value; } |
