Commit f194db9a authored by Niels Lohmann's avatar Niels Lohmann

added assertion for warning from #368

parent c39c36e6
...@@ -8736,6 +8736,7 @@ basic_json_parser_66: ...@@ -8736,6 +8736,7 @@ basic_json_parser_66:
m_line_buffer.clear(); m_line_buffer.clear();
for (m_cursor = m_start; m_cursor != m_limit; ++m_cursor) 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)); m_line_buffer.append(1, static_cast<const char>(*m_cursor));
} }
} }
......
...@@ -7885,6 +7885,7 @@ class basic_json ...@@ -7885,6 +7885,7 @@ class basic_json
m_line_buffer.clear(); m_line_buffer.clear();
for (m_cursor = m_start; m_cursor != m_limit; ++m_cursor) 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)); m_line_buffer.append(1, static_cast<const char>(*m_cursor));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment