summaryrefslogtreecommitdiff
path: root/src/input/InputStream.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-18 09:47:23 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 21:23:03 +0200
commit181edf4b5397ded0bb49b13a9df0a21b1806a695 (patch)
treeb12c1d5fe4d6616e23208ee22f46bbf3a4111e9c /src/input/InputStream.hxx
parentdfa53cb88e0e4a102eafb73d147c03f7a73c51c9 (diff)
InputStream: make offset_type unsigned
Diffstat (limited to 'src/input/InputStream.hxx')
-rw-r--r--src/input/InputStream.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx
index f335b4642..19cf0a2de 100644
--- a/src/input/InputStream.hxx
+++ b/src/input/InputStream.hxx
@@ -35,7 +35,7 @@ struct Tag;
class InputStream {
public:
- typedef int64_t offset_type;
+ typedef uint64_t offset_type;
private:
/**
@@ -236,8 +236,6 @@ public:
void AddOffset(offset_type delta) {
assert(ready);
- assert(offset >= 0);
- assert(delta >= 0);
offset += delta;
}
@@ -253,7 +251,6 @@ public:
offset_type GetRest() const {
assert(ready);
assert(KnownSize());
- assert(offset >= 0);
return size - offset;
}