diff options
author | Max Kellermann <max@duempel.org> | 2014-08-19 21:02:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-19 21:02:00 +0200 |
commit | d079cda1746a30ad9708e33ec69beb69412aa9d9 (patch) | |
tree | b190528384090f61136f78d93464b00847e7cb8f /src/input | |
parent | 4265e71d6f8334c77bef8ccb26d6f0db8b25a53e (diff) |
InputStream: allow GetSize() only if KnownSize()
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/InputStream.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx index a84405df0..f335b4642 100644 --- a/src/input/InputStream.hxx +++ b/src/input/InputStream.hxx @@ -229,6 +229,7 @@ public: gcc_pure offset_type GetSize() const { assert(ready); + assert(KnownSize()); return size; } |