fixed #306
This commit is contained in:
parent
8ea0ee502d
commit
2daab5a4c2
6 changed files with 22 additions and 3 deletions
|
|
@ -8592,7 +8592,7 @@ basic_json_parser_63:
|
|||
const auto offset_cursor = m_cursor - m_start;
|
||||
|
||||
// no stream is used or end of file is reached
|
||||
if (m_stream == nullptr or not * m_stream)
|
||||
if (m_stream == nullptr or m_stream->eof())
|
||||
{
|
||||
// copy unprocessed characters to line buffer
|
||||
m_line_buffer.clear();
|
||||
|
|
|
|||
|
|
@ -7889,7 +7889,7 @@ class basic_json
|
|||
const auto offset_cursor = m_cursor - m_start;
|
||||
|
||||
// no stream is used or end of file is reached
|
||||
if (m_stream == nullptr or not * m_stream)
|
||||
if (m_stream == nullptr or m_stream->eof())
|
||||
{
|
||||
// copy unprocessed characters to line buffer
|
||||
m_line_buffer.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue