From e1703204f8ca8e6cbc55ef609be99816ae5ec6d6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 19 May 2016 20:20:42 +0100 Subject: [PATCH] fix bug in utf8_iterator --- src/utf8_iterator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(m_it, m_end); return m_value; }