提交 edb69729 编写于 作者: A Aaron Burghardt

Fixed variable adjustments in yyfill().

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册