Fix file_body::get() not setting the more flag correctly

The check for more data actually checked if the end of data was reached
so it was logically inverted.

This fixes #434
This commit is contained in:
Niklas Schnelle
2017-06-08 10:07:52 +02:00
committed by Vinnie Falco
parent 9af1b35252
commit 38c36ac655
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ Version 51
* Fix operator<< for header
* Tidy up file_body
* Fix file_body::get() not setting the more flag correctly
API Changes:

View File

@ -88,7 +88,7 @@ struct file_body
}
BOOST_ASSERT(nread != 0);
offset_ += nread;
return {{const_buffers_type{buf_, nread}, offset_ >= size_}};
return {{const_buffers_type{buf_, nread}, offset_ < size_}};
}
};
};