added assertion for warning from #368

This commit is contained in:
Niels Lohmann 2016-11-24 22:07:35 +01:00
parent c39c36e6ad
commit f194db9aa6
2 changed files with 2 additions and 0 deletions

View file

@ -8736,6 +8736,7 @@ basic_json_parser_66:
m_line_buffer.clear();
for (m_cursor = m_start; m_cursor != m_limit; ++m_cursor)
{
assert(m_cursor != nullptr);
m_line_buffer.append(1, static_cast<const char>(*m_cursor));
}
}

View file

@ -7885,6 +7885,7 @@ class basic_json
m_line_buffer.clear();
for (m_cursor = m_start; m_cursor != m_limit; ++m_cursor)
{
assert(m_cursor != nullptr);
m_line_buffer.append(1, static_cast<const char>(*m_cursor));
}
}