Commit edb69729 authored by Aaron Burghardt's avatar Aaron Burghardt

Fixed variable adjustments in yyfill().

parent ec6979bf
......@@ -3260,7 +3260,6 @@ class basic_json
ssize_t offset_start = m_start - m_content;
ssize_t offset_marker = m_marker - m_start;
ssize_t offset_cursor = m_cursor - m_start;
ssize_t offset_limit = m_limit - m_start;
m_buffer.erase(0, offset_start);
std::string line;
......@@ -3268,10 +3267,10 @@ class basic_json
m_buffer += line;
m_content = reinterpret_cast<const lexer_char_t*>(m_buffer.c_str());
m_start = m_content + offset_start;
m_start = m_content;
m_marker = m_start + offset_marker;
m_cursor = m_start + offset_cursor;
m_limit = m_start + offset_limit;
m_limit = m_start + m_buffer.size() - 1;
}
/// return string representation of last read token
......
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