From 672f678ed61a5cfd3bcf3f8f8c521e29481d031f Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 19 Aug 2014 11:56:51 +0200
Subject: InputStream: use KnownSize() in assertion

---
 src/input/InputStream.hxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v1.2.3