aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-19 11:56:51 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 11:59:19 +0200
commit672f678ed61a5cfd3bcf3f8f8c521e29481d031f (patch)
tree7ff05eaac2ae0cc7c6a6fe32d28618c217f65d96 /src/input
parentb924568f792ea5e5d2841cc413d989738ac00bb8 (diff)
downloadmpd-672f678ed61a5cfd3bcf3f8f8c521e29481d031f.tar.gz
mpd-672f678ed61a5cfd3bcf3f8f8c521e29481d031f.tar.xz
mpd-672f678ed61a5cfd3bcf3f8f8c521e29481d031f.zip
InputStream: use KnownSize() in assertion
Diffstat (limited to 'src/input')
-rw-r--r--src/input/InputStream.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx
index 25e99de3d..c62f71e45 100644
--- a/src/input/InputStream.hxx
+++ b/src/input/InputStream.hxx
@@ -249,7 +249,7 @@ public:
gcc_pure
offset_type GetRest() const {
assert(ready);
- assert(size >= 0);
+ assert(KnownSize());
assert(offset >= 0);
return size - offset;