Skip to content

Commit

Permalink
✅ added assertion for warning from #368
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Nov 24, 2016
1 parent c39c36e commit f194db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8736,6 +8736,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));
}
}
Expand Down
1 change: 1 addition & 0 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit f194db9

Please sign in to comment.