fix bug in utf8_iterator
This commit is contained in:
parent
fb01c8c377
commit
e1703204f8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user