Fixed variable adjustments in yyfill().

This commit is contained in:
Aaron Burghardt 2015-02-28 08:42:20 -05:00
parent ec6979bf76
commit edb697293b

View file

@ -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