This commit is contained in:
Alex Beregszaszi 2021-05-13 20:26:06 +01:00
parent 69b33f5190
commit 41bd90118c

View File

@ -95,7 +95,7 @@ private:
/// Advances current position by 1 in the input stream.
void advance()
{
solAssert(m_char != m_source.end(), "Cannot advance beyond end.");
solAssert(!eof(), "Cannot advance beyond end.");
m_char = std::next(m_char, 1);
}