summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-05-19 20:20:42 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-05-19 20:20:42 +0100
commite1703204f8ca8e6cbc55ef609be99816ae5ec6d6 (patch)
treee708fa4c121aaf736224936812c1c056568b64e7 /src/utf8_iterator.hh
parentfb01c8c377fd65f82ce8d22ec088b82a870381cd (diff)
fix bug in utf8_iterator
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 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;
}