fix bug in utf8_iterator

This commit is contained in:
Maxime Coste 2016-05-19 20:20:42 +01:00
parent fb01c8c377
commit e1703204f8

View File

@ -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;
}