aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/stream.cpp b/common/stream.cpp
index 4f065d5d5d..62b045fd0d 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -27,7 +27,7 @@ namespace Common {
void MemoryReadStream::seek(int32 offs, int whence) {
// Pre-Condition
- assert(0 <= _pos && _pos <= _bufSize);
+ assert(_pos <= _bufSize);
switch (whence) {
case SEEK_END:
// SEEK_END works just like SEEK_SET, only 'reversed',
@@ -45,7 +45,7 @@ void MemoryReadStream::seek(int32 offs, int whence) {
break;
}
// Post-Condition
- assert(0 <= _pos && _pos <= _bufSize);
+ assert(_pos <= _bufSize);
}