InputStream: use KnownSize() in assertion
This commit is contained in:
parent
b924568f79
commit
672f678ed6
@ -249,7 +249,7 @@ public:
|
|||||||
gcc_pure
|
gcc_pure
|
||||||
offset_type GetRest() const {
|
offset_type GetRest() const {
|
||||||
assert(ready);
|
assert(ready);
|
||||||
assert(size >= 0);
|
assert(KnownSize());
|
||||||
assert(offset >= 0);
|
assert(offset >= 0);
|
||||||
|
|
||||||
return size - offset;
|
return size - offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user