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 05:47:01 -07:00
committed by Vinnie Falco
parent 566244adc1
commit eb35b9212a
2 changed files with 2 additions and 1 deletions
+1
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:
+1 -1
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_}};
}
};
};