Fixed variable adjustments in yyfill().
This commit is contained in:
parent
ec6979bf76
commit
edb697293b
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue